mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-22 10:50:36 -04:00
Rearrange persist_event so that do all the queries that need to be done before returning early if we have already persisted that event.
This commit is contained in:
parent
02be8da5e1
commit
c0462dbf15
3 changed files with 77 additions and 72 deletions
|
@ -77,7 +77,7 @@ class EventBase(object):
|
|||
return self.content["membership"]
|
||||
|
||||
def is_state(self):
|
||||
return hasattr(self, "state_key")
|
||||
return hasattr(self, "state_key") and self.state_key is not None
|
||||
|
||||
def get_dict(self):
|
||||
d = dict(self._event_dict)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue