This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -271,11 +271,11 @@ async def get_user_ids_changed(
271
271
possibly_left = possibly_changed | possibly_left
272
272
273
273
# Double check if we still share rooms with the given user.
274
- users_rooms = await self .store .get_rooms_for_users_with_stream_ordering (
274
+ users_rooms = await self .store .get_rooms_for_users (
275
275
possibly_left
276
276
)
277
277
for changed_user_id , entries in users_rooms .items ():
278
- if any (e . room_id in room_ids for e in entries ):
278
+ if any (room_id in room_ids for room_id in entries ):
279
279
possibly_left .discard (changed_user_id )
280
280
else :
281
281
possibly_joined .discard (changed_user_id )
Original file line number Diff line number Diff line change @@ -1474,7 +1474,7 @@ async def _generate_sync_entry_for_device_list(
1474
1474
since_token .device_list_key
1475
1475
)
1476
1476
if changed_users is not None :
1477
- result = await self .store .get_rooms_for_users_with_stream_ordering (
1477
+ result = await self .store .get_rooms_for_users (
1478
1478
changed_users
1479
1479
)
1480
1480
@@ -1483,7 +1483,7 @@ async def _generate_sync_entry_for_device_list(
1483
1483
# or if the changed user is the syncing user (as we always
1484
1484
# want to include device list updates of their own devices).
1485
1485
if user_id == changed_user_id or any (
1486
- e . room_id in joined_rooms for e in entries
1486
+ rid in joined_rooms for rid in entries
1487
1487
):
1488
1488
users_that_have_changed .add (changed_user_id )
1489
1489
else :
@@ -1518,12 +1518,12 @@ async def _generate_sync_entry_for_device_list(
1518
1518
1519
1519
# Remove any users that we still share a room with.
1520
1520
left_users_rooms = (
1521
- await self .store .get_rooms_for_users_with_stream_ordering (
1521
+ await self .store .get_rooms_for_users (
1522
1522
newly_left_users
1523
1523
)
1524
1524
)
1525
1525
for user_id , entries in left_users_rooms .items ():
1526
- if any (e . room_id in joined_rooms for e in entries ):
1526
+ if any (rid in joined_rooms for rid in entries ):
1527
1527
newly_left_users .discard (user_id )
1528
1528
1529
1529
return DeviceListUpdates (
You can’t perform that action at this time.
0 commit comments