mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 03:58:06 +03: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
1 changed files with 3 additions and 1 deletions
|
@ -555,10 +555,12 @@ class Mailer(object):
|
|||
else:
|
||||
# If the reason room doesn't have a name, say who the messages
|
||||
# are from explicitly to avoid, "messages in the Bob room"
|
||||
room_id = reason["room_id"]
|
||||
|
||||
sender_ids = list(
|
||||
{
|
||||
notif_events[n["event_id"]].sender
|
||||
for n in notifs_by_room[reason["room_id"]]
|
||||
for n in notifs_by_room[room_id]
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue