-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Listen to live updates to users and their devices
We subscribe to updates to kMonalOmemoStateUpdated and kMonalMucParticipantsAndMembersUpdated, to listen to device and member updates, respectively. These subscriptions take place in a view model, so that they can be created separately from the lifecycles of the views themselves. Without this approach, device updates in group chats would not sync correctly since there would be a race condition between the view being created and the devices being fetched from the server. We also simplify the OmemoKeysForContact view a little, by passing in the devices directly.
- Loading branch information
1 parent
6d080c7
commit 5454976
Showing
3 changed files
with
87 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters