0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-18 15:34:16 +01:00

Better name

This commit is contained in:
Erik Johnston 2017-01-27 10:29:47 +00:00
parent f25a4a4692
commit 888c59c955
2 changed files with 4 additions and 2 deletions

View file

@ -259,7 +259,9 @@ class DeviceHandler(BaseHandler):
# to resync the users device list, otherwise we do. # to resync the users device list, otherwise we do.
resync = True resync = True
if len(prev_ids) == 1: if len(prev_ids) == 1:
extremity = yield self.store.get_device_list_remote_extremity(user_id) extremity = yield self.store.get_device_list_last_stream_id_for_remote(
user_id
)
logger.info("Extrem: %r, prev_ids: %r", extremity, prev_ids) logger.info("Extrem: %r, prev_ids: %r", extremity, prev_ids)
if str(extremity) == str(prev_ids[0]): if str(extremity) == str(prev_ids[0]):
resync = False resync = False

View file

@ -137,7 +137,7 @@ class DeviceStore(SQLBaseStore):
defer.returnValue({d["device_id"]: d for d in devices}) defer.returnValue({d["device_id"]: d for d in devices})
def get_device_list_remote_extremity(self, user_id): def get_device_list_last_stream_id_for_remote(self, user_id):
"""Get the last stream_id we got for a user. May be None if we haven't """Get the last stream_id we got for a user. May be None if we haven't
got any information for them. got any information for them.
""" """