-
-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process
m.room.encryption
events before emitting RoomMember
events (
#2910) * Update tests * Call `Store.storeRoom` earlier We're going to call `onCryptoEvent` earlier in `processSyncResponse`, but we need to have stored the room before doing so. We therefore need to move the call to `storeRoom` earlier. We can actually reduce a bit of duplication by moving the call into `SyncApi.createRoom`. `storeRoom` has relatively few side-effects, so as far as I can tell this should be pretty safe. * Call onCryptoEvent before processing state events This fixes the problematic race condition.
- Loading branch information
Showing
4 changed files
with
135 additions
and
35 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
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