mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Rename get_users_whose_devices_changed
This commit is contained in:
parent
508c3ce3d7
commit
806a06daf2
@ -106,7 +106,7 @@ class DeviceWorkerHandler(BaseHandler):
|
|||||||
users_who_share_room = yield self.store.get_users_who_share_room_with_user(
|
users_who_share_room = yield self.store.get_users_who_share_room_with_user(
|
||||||
user_id
|
user_id
|
||||||
)
|
)
|
||||||
changed = yield self.store.get_user_whose_devices_changed(
|
changed = yield self.store.get_users_whose_devices_changed(
|
||||||
from_token.device_list_key, users_who_share_room
|
from_token.device_list_key, users_who_share_room
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1080,7 +1080,7 @@ class SyncHandler(object):
|
|||||||
# weren't in the previous sync *or* they left and rejoined.
|
# weren't in the previous sync *or* they left and rejoined.
|
||||||
changed = users_who_share_room & set(newly_joined_or_invited_users)
|
changed = users_who_share_room & set(newly_joined_or_invited_users)
|
||||||
|
|
||||||
changed_users = yield self.store.get_user_whose_devices_changed(
|
changed_users = yield self.store.get_users_whose_devices_changed(
|
||||||
since_token.device_list_key, users_who_share_room
|
since_token.device_list_key, users_who_share_room
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -391,7 +391,7 @@ class DeviceWorkerStore(SQLBaseStore):
|
|||||||
|
|
||||||
return now_stream_id, []
|
return now_stream_id, []
|
||||||
|
|
||||||
def get_user_whose_devices_changed(self, from_key, user_ids):
|
def get_users_whose_devices_changed(self, from_key, user_ids):
|
||||||
"""Get set of users whose devices have changed since `from_key` that
|
"""Get set of users whose devices have changed since `from_key` that
|
||||||
are in the given list of user_ids.
|
are in the given list of user_ids.
|
||||||
|
|
||||||
@ -426,7 +426,7 @@ class DeviceWorkerStore(SQLBaseStore):
|
|||||||
AND user_id IN (%s)
|
AND user_id IN (%s)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def _get_user_whose_devices_changed_txn(txn):
|
def _get_users_whose_devices_changed_txn(txn):
|
||||||
changes = set()
|
changes = set()
|
||||||
|
|
||||||
for chunk in chunks:
|
for chunk in chunks:
|
||||||
@ -436,7 +436,7 @@ class DeviceWorkerStore(SQLBaseStore):
|
|||||||
return changes
|
return changes
|
||||||
|
|
||||||
return self.runInteraction(
|
return self.runInteraction(
|
||||||
"get_user_whose_devices_changed", _get_user_whose_devices_changed_txn
|
"get_users_whose_devices_changed", _get_users_whose_devices_changed_txn
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_all_device_list_changes_for_remotes(self, from_key, to_key):
|
def get_all_device_list_changes_for_remotes(self, from_key, to_key):
|
||||||
|
Loading…
Reference in New Issue
Block a user