mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 12:26:10 -04:00
Remove the is_new_state argument to persist event.
Move the checks for whether an event is new state inside persist event itself. This was harder than expected because there wasn't enough information passed to persist event to correctly handle invites from remote servers for new rooms.
This commit is contained in:
parent
62e395f0e3
commit
76503f95ed
3 changed files with 56 additions and 55 deletions
|
@ -33,6 +33,9 @@ class _EventInternalMetadata(object):
|
|||
def is_outlier(self):
|
||||
return getattr(self, "outlier", False)
|
||||
|
||||
def is_invite_from_remote(self):
|
||||
return getattr(self, "invite_from_remote", False)
|
||||
|
||||
|
||||
def _event_dict_property(key):
|
||||
def getter(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue