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

Set m.room.canonical_alias on room creation. #287

Merged
merged 2 commits into from
Sep 30, 2015

Conversation

erikjohnston
Copy link
Member

No description provided.

@@ -271,6 +272,15 @@ def create(etype, content, **kwargs):

returned_events.append(power_levels_event)

if room_alias:
if (EventTypes.CanonicalAlias, '') not in initial_state:
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably don't need two levels of if block here:

if room_alias and (EventTypes.CanonicalAlias, '') not in initial_state:

@NegativeMjark
Copy link
Contributor

Otherwise LGTM.

@erikjohnston
Copy link
Member Author

Done

@NegativeMjark
Copy link
Contributor

LGTM

erikjohnston added a commit that referenced this pull request Sep 30, 2015
Set m.room.canonical_alias on room creation.
@erikjohnston erikjohnston merged commit 0ec78b3 into develop Sep 30, 2015
@erikjohnston erikjohnston deleted the erikj/canonical_alias branch November 19, 2015 16:33
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