mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 22:03:49 +01:00
Don't include None's in _get_events_txn
This commit is contained in:
parent
8a12df8cf3
commit
52b2c6c9c7
1 changed files with 3 additions and 1 deletions
|
@ -446,7 +446,7 @@ class SQLBaseStore(object):
|
||||||
if not event_ids:
|
if not event_ids:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
return [
|
events = [
|
||||||
self._get_event_txn(
|
self._get_event_txn(
|
||||||
txn, event_id,
|
txn, event_id,
|
||||||
check_redacted=check_redacted,
|
check_redacted=check_redacted,
|
||||||
|
@ -455,6 +455,8 @@ class SQLBaseStore(object):
|
||||||
for event_id in event_ids
|
for event_id in event_ids
|
||||||
]
|
]
|
||||||
|
|
||||||
|
return [e for e in events if e]
|
||||||
|
|
||||||
def _get_event_txn(self, txn, event_id, check_redacted=True,
|
def _get_event_txn(self, txn, event_id, check_redacted=True,
|
||||||
get_prev_content=False):
|
get_prev_content=False):
|
||||||
sql = (
|
sql = (
|
||||||
|
|
Loading…
Reference in a new issue