From fea8d8949353e630678b96ae586c5ff25dd7a9ee Mon Sep 17 00:00:00 2001 From: Max Sandholm Date: Sat, 8 Apr 2017 13:32:19 +0300 Subject: [PATCH] Fix aliases-related breakage --- telematrix/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telematrix/__init__.py b/telematrix/__init__.py index c6b9ea9..bea6220 100644 --- a/telematrix/__init__.py +++ b/telematrix/__init__.py @@ -171,7 +171,7 @@ async def matrix_transaction(request): except KeyError: pass - if event['type'] == 'm.room.aliases': + if event['type'] == 'm.room.aliases' and event['state_key'] == MATRIX_HOST_BARE: aliases = event['content']['aliases'] links = db.session.query(db.ChatLink)\