project-robius / robrix

A Matrix chat client written in pure Rust using the Makepad UI toolkit and the Robius app dev framework
MIT License
67 stars 11 forks source link

Move user profile cache to its own module. #105

Closed kevinaboos closed 1 month ago

kevinaboos commented 1 month ago

Require functions that must run on the main UI thread to accept a reference to Cx as a guarantee that they are running on the main thread, as &mut Cx is only available on the main UI thread.

(untested)

kevinaboos commented 1 month ago

tested fully working. Background updates are now reflected in the UI-accessible profile cache wayyyy faster.

kevinaboos commented 1 month ago

Partially address #96