mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-05 14:18:55 +01:00
May as well always include room link
This commit is contained in:
parent
cc0874cf71
commit
e800ee2f63
1 changed files with 3 additions and 4 deletions
|
@ -157,12 +157,11 @@ class Mailer(object):
|
||||||
"title": calculate_room_name(room_state, user_id),
|
"title": calculate_room_name(room_state, user_id),
|
||||||
"hash": string_ordinal_total(room_id), # See sender avatar hash
|
"hash": string_ordinal_total(room_id), # See sender avatar hash
|
||||||
"notifs": [],
|
"notifs": [],
|
||||||
"invite": is_invite
|
"invite": is_invite,
|
||||||
|
"link": self.make_room_link(room_id),
|
||||||
}
|
}
|
||||||
|
|
||||||
if is_invite:
|
if not is_invite:
|
||||||
room_vars["link"] = self.make_room_link(room_id)
|
|
||||||
else:
|
|
||||||
for n in notifs:
|
for n in notifs:
|
||||||
vars = yield self.get_notif_vars(
|
vars = yield self.get_notif_vars(
|
||||||
n, user_id, notif_events[n['event_id']], room_state
|
n, user_id, notif_events[n['event_id']], room_state
|
||||||
|
|
Loading…
Reference in a new issue