mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-22 02:14:01 +01:00
Don't insert None
This commit is contained in:
parent
cf706cc6ef
commit
8888982db3
1 changed files with 4 additions and 1 deletions
|
@ -1002,7 +1002,10 @@ class SQLBaseStore(object):
|
||||||
e.event_id, check_redacted, get_prev_content, e
|
e.event_id, check_redacted, get_prev_content, e
|
||||||
)
|
)
|
||||||
|
|
||||||
return [event_map[e_id] for e_id in events if e_id in event_map]
|
return [
|
||||||
|
event_map[e_id] for e_id in events
|
||||||
|
if e_id in event_map and event_id[e_id]
|
||||||
|
]
|
||||||
|
|
||||||
def _get_event_from_row_txn(self, txn, internal_metadata, js, redacted,
|
def _get_event_from_row_txn(self, txn, internal_metadata, js, redacted,
|
||||||
check_redacted=True, get_prev_content=False,
|
check_redacted=True, get_prev_content=False,
|
||||||
|
|
Loading…
Reference in a new issue