mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-18 11:34:03 +01:00
Start later
This commit is contained in:
parent
42137efde7
commit
3e123b8497
1 changed files with 4 additions and 1 deletions
|
@ -90,6 +90,9 @@ class UserDirectoyHandler(object):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _do_initial_spam(self):
|
def _do_initial_spam(self):
|
||||||
|
# TODO: pull from current delta stream_id
|
||||||
|
new_pos = self.store.get_room_max_stream_ordering()
|
||||||
|
|
||||||
yield self.store.delete_all_from_user_dir()
|
yield self.store.delete_all_from_user_dir()
|
||||||
|
|
||||||
room_ids = yield self.store.get_all_rooms()
|
room_ids = yield self.store.get_all_rooms()
|
||||||
|
@ -99,7 +102,7 @@ class UserDirectoyHandler(object):
|
||||||
|
|
||||||
self.initially_handled_users = None
|
self.initially_handled_users = None
|
||||||
|
|
||||||
yield self.store.update_user_directory_stream_pos(-1)
|
yield self.store.update_user_directory_stream_pos(new_pos)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _handle_new_user(self, room_id, user_id, profile):
|
def _handle_new_user(self, room_id, user_id, profile):
|
||||||
|
|
Loading…
Reference in a new issue