mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-15 08:05:31 -04:00
Merge remote-tracking branch 'upstream/release-v1.34.0'
This commit is contained in:
commit
2d57abd6b7
363 changed files with 2301 additions and 737 deletions
|
@ -1189,7 +1189,7 @@ class SyncHandler:
|
|||
|
||||
# Step 1b, check for newly joined rooms
|
||||
for room_id in newly_joined_rooms:
|
||||
joined_users = await self.state.get_current_users_in_room(room_id)
|
||||
joined_users = await self.store.get_users_in_room(room_id)
|
||||
newly_joined_or_invited_users.update(joined_users)
|
||||
|
||||
# TODO: Check that these users are actually new, i.e. either they
|
||||
|
@ -1205,7 +1205,7 @@ class SyncHandler:
|
|||
|
||||
# Now find users that we no longer track
|
||||
for room_id in newly_left_rooms:
|
||||
left_users = await self.state.get_current_users_in_room(room_id)
|
||||
left_users = await self.store.get_users_in_room(room_id)
|
||||
newly_left_users.update(left_users)
|
||||
|
||||
# Remove any users that we still share a room with.
|
||||
|
@ -1360,7 +1360,7 @@ class SyncHandler:
|
|||
|
||||
extra_users_ids = set(newly_joined_or_invited_users)
|
||||
for room_id in newly_joined_rooms:
|
||||
users = await self.state.get_current_users_in_room(room_id)
|
||||
users = await self.store.get_users_in_room(room_id)
|
||||
extra_users_ids.update(users)
|
||||
extra_users_ids.discard(user.to_string())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue