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

Clean up room alias creation #4063

Merged
merged 2 commits into from
Oct 24, 2018
Merged

Conversation

erikjohnston
Copy link
Member

In particular, instead of trying to create the alias as a user and if that fails attempting to create as an appservice, we check if the requester is an appservice up front.

@erikjohnston erikjohnston requested a review from a team October 19, 2018 09:14
@erikjohnston
Copy link
Member Author

Oh, this also pulls in the change from using SynapseError to AuthError, which changes the errcode from M_UNKNOWN to M_FORBIDDEN

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm

# association creation for app services
yield self._create_association(room_alias, room_id, servers)
yield self._create_association(room_alias, room_id, servers, creator=user_id)
if send_event:
Copy link
Member

Choose a reason for hiding this comment

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

I'm not entirely convinced that having this in here is helpful, but whatever

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants