mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Fill out prev_events before calling persist_event
This commit is contained in:
parent
474dcecb11
commit
a03c7f27a8
5 changed files with 57 additions and 83 deletions
|
@ -127,7 +127,9 @@ class MemoryDataStore(object):
|
|||
self.current_state = {}
|
||||
self.events = []
|
||||
|
||||
Snapshot = namedtuple("Snapshot", "room_id user_id membership_state")
|
||||
class Snapshot(namedtuple("Snapshot", "room_id user_id membership_state")):
|
||||
def fill_out_prev_events(self, event):
|
||||
pass
|
||||
|
||||
def snapshot_room(self, room_id, user_id, state_type=None, state_key=None):
|
||||
return self.Snapshot(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue