mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix AttributeError
This commit is contained in:
parent
018443cb59
commit
02db1fd2e7
@ -55,6 +55,9 @@ class _EventInternalMetadata(object):
|
|||||||
def get_dict(self):
|
def get_dict(self):
|
||||||
return dict(self.__dict__)
|
return dict(self.__dict__)
|
||||||
|
|
||||||
|
def is_outlier(self):
|
||||||
|
return hasattr(self, "outlier") and self.outlier
|
||||||
|
|
||||||
|
|
||||||
def _event_dict_property(key):
|
def _event_dict_property(key):
|
||||||
def getter(self):
|
def getter(self):
|
||||||
|
@ -687,7 +687,7 @@ class FederationHandler(BaseHandler):
|
|||||||
event.event_id, event.signatures,
|
event.event_id, event.signatures,
|
||||||
)
|
)
|
||||||
|
|
||||||
is_new_state = not event.internal_metadata.outlier
|
is_new_state = not event.internal_metadata.is_outlier()
|
||||||
|
|
||||||
known_ids = set(
|
known_ids = set(
|
||||||
[s.event_id for s in context.auth_events.values()]
|
[s.event_id for s in context.auth_events.values()]
|
||||||
|
Loading…
Reference in New Issue
Block a user