forked from MirrorHub/synapse
Merge pull request #961 from matrix-org/dbkr/fix_push_invite_name
Don't include name of room for invites in push
This commit is contained in:
commit
b557b682d9
1 changed files with 4 additions and 1 deletions
|
@ -83,7 +83,10 @@ def calculate_room_name(room_state, user_id, fallback_to_members=True,
|
||||||
):
|
):
|
||||||
if ("m.room.member", my_member_event.sender) in room_state:
|
if ("m.room.member", my_member_event.sender) in room_state:
|
||||||
inviter_member_event = room_state[("m.room.member", my_member_event.sender)]
|
inviter_member_event = room_state[("m.room.member", my_member_event.sender)]
|
||||||
|
if fallback_to_single_member:
|
||||||
return "Invite from %s" % (name_from_member_event(inviter_member_event),)
|
return "Invite from %s" % (name_from_member_event(inviter_member_event),)
|
||||||
|
else:
|
||||||
|
return None
|
||||||
else:
|
else:
|
||||||
return "Room Invite"
|
return "Room Invite"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue