Brief comment on why we do some things on every call to persist_event and not others
This commit is contained in:
parent
f275ba49bb
commit
03d415a6a2
|
@ -239,6 +239,12 @@ class DataStore(RoomMemberStore, RoomStore,
|
||||||
event.internal_metadata.get_dict()
|
event.internal_metadata.get_dict()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# If we have already persisted this event, we don't need to do any
|
||||||
|
# more processing.
|
||||||
|
# The processing above must be done on every call to persist event,
|
||||||
|
# since they might not have happened on previous calls. For example,
|
||||||
|
# if we are persisting an event that we had persisted as an outlier,
|
||||||
|
# but is no longer one.
|
||||||
if have_persisted:
|
if have_persisted:
|
||||||
if not outlier:
|
if not outlier:
|
||||||
sql = (
|
sql = (
|
||||||
|
|
Loading…
Reference in New Issue