mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix undefined variable & remove debug logging
This commit is contained in:
parent
a07e03ce90
commit
16ee97988a
@ -126,18 +126,10 @@ class DeviceWorkerHandler(BaseHandler):
|
||||
# always tell the user about their own devices
|
||||
tracked_users.add(user_id)
|
||||
|
||||
logger.info(
|
||||
"tracked users ids: %r", tracked_users,
|
||||
)
|
||||
|
||||
changed = yield self.store.get_users_whose_devices_changed(
|
||||
from_token.device_list_key, tracked_users
|
||||
)
|
||||
|
||||
logger.info(
|
||||
"changed users IDs: %r", changed,
|
||||
)
|
||||
|
||||
# Then work out if any users have since joined
|
||||
rooms_changed = self.store.get_rooms_that_changed(room_ids, from_token.room_key)
|
||||
|
||||
@ -225,8 +217,8 @@ class DeviceWorkerHandler(BaseHandler):
|
||||
if possibly_changed or possibly_left:
|
||||
# Take the intersection of the users whose devices may have changed
|
||||
# and those that actually still share a room with the user
|
||||
possibly_joined = possibly_changed & users_who_share_room
|
||||
possibly_left = (possibly_changed | possibly_left) - users_who_share_room
|
||||
possibly_joined = possibly_changed & tracked_users
|
||||
possibly_left = (possibly_changed | possibly_left) - tracked_users
|
||||
else:
|
||||
possibly_joined = []
|
||||
possibly_left = []
|
||||
|
Loading…
Reference in New Issue
Block a user