diff options
author | Erik Johnston <erik@matrix.org> | 2022-09-27 13:01:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 13:01:08 +0100 |
commit | e8318a433356413648bd180dcfc69c29ca319fc6 (patch) | |
tree | 340aabcb04f4fa3663a5c3b189131b7cee37b62e /synapse/storage/databases/main/events.py | |
parent | Faster room joins: Fix spurious error when joining a room (#13872) (diff) | |
download | synapse-e8318a433356413648bd180dcfc69c29ca319fc6.tar.xz |
Handle the case of remote users leaving a partial join room for device lists (#13885)
Diffstat (limited to 'synapse/storage/databases/main/events.py')
-rw-r--r-- | synapse/storage/databases/main/events.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py index 2e156a4a11..b59eb7478b 100644 --- a/synapse/storage/databases/main/events.py +++ b/synapse/storage/databases/main/events.py @@ -1202,6 +1202,12 @@ class PersistEventsStore: txn, room_id, members_changed ) + # Check if any of the remote membership changes requires us to + # unsubscribe from their device lists. + self.store.handle_potentially_left_users_txn( + txn, {m for m in members_changed if not self.hs.is_mine_id(m)} + ) + def _upsert_room_version_txn(self, txn: LoggingTransaction, room_id: str) -> None: """Update the room version in the database based off current state events. |