summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-26 11:23:53 +0100
committerErik Johnston <erik@matrix.org>2016-08-26 11:23:58 +0100
commitc7cd35d682c51cdd7e14bbf75cb3d17a2da0b99b (patch)
treec7e08a2b2afb0a09f61c826f6ea53f8585789a23
parentMake None optional (diff)
downloadsynapse-c7cd35d682c51cdd7e14bbf75cb3d17a2da0b99b.tar.xz
Typo
-rw-r--r--synapse/push/presentable_names.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/push/presentable_names.py b/synapse/push/presentable_names.py
index 80c9f21a6c..f90b789c05 100644
--- a/synapse/push/presentable_names.py
+++ b/synapse/push/presentable_names.py
@@ -57,7 +57,6 @@ def calculate_room_name(store, room_state_ids, user_id, fallback_to_members=True
         canon_alias = yield store.get_event(
             room_state_ids[("m.room.canonical_alias", "")], allow_none=True
         )
-        canon_alias = room_state_ids[("m.room.canonical_alias", "")]
         if (
             canon_alias and canon_alias.content and canon_alias.content["alias"] and
             _looks_like_an_alias(canon_alias.content["alias"])