Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix handling of rejected threepid invites #3999

Merged
merged 3 commits into from
Oct 3, 2018
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/3999.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix handling of rejected threepid invites
2 changes: 1 addition & 1 deletion synapse/event_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def check(event, auth_events, do_sig_check=True, do_size_check=True):
raise AuthError(
403, (
"You cannot issue a third party invite for %s." %
(event.content.display_name,)
(event.content.get("display_name", "<Unknown>"),)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

surely this is nothing to do with the display name?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Err, good point.

)
)
else:
Expand Down