mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-02-04 16:15:20 -05:00
Fix undefined room_id
in make_summary_text
This would break notifications about un-named rooms when processing notifications in a batch.
This commit is contained in:
parent
87c65576e0
commit
aee2bae952
@ -555,10 +555,12 @@ class Mailer(object):
|
|||||||
else:
|
else:
|
||||||
# If the reason room doesn't have a name, say who the messages
|
# If the reason room doesn't have a name, say who the messages
|
||||||
# are from explicitly to avoid, "messages in the Bob room"
|
# are from explicitly to avoid, "messages in the Bob room"
|
||||||
|
room_id = reason["room_id"]
|
||||||
|
|
||||||
sender_ids = list(
|
sender_ids = list(
|
||||||
{
|
{
|
||||||
notif_events[n["event_id"]].sender
|
notif_events[n["event_id"]].sender
|
||||||
for n in notifs_by_room[reason["room_id"]]
|
for n in notifs_by_room[room_id]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user