Don't explode if we don't have the event

pull/4/merge
Erik Johnston 10 years ago
parent b579a8ea18
commit 6e17463228
  1. 4
      synapse/storage/events.py

@ -736,7 +736,8 @@ class EventsStore(SQLBaseStore):
because = yield self.get_event(
redaction_id,
check_redacted=False
check_redacted=False,
allow_none=True,
)
if because:
@ -746,6 +747,7 @@ class EventsStore(SQLBaseStore):
prev = yield self.get_event(
ev.unsigned["replaces_state"],
get_prev_content=False,
allow_none=True,
)
if prev:
ev.unsigned["prev_content"] = prev.get_dict()["content"]

Loading…
Cancel
Save