Fix aliases-related breakage

This commit is contained in:
Max Sandholm 2017-04-08 13:32:19 +03:00
parent 15e84f6861
commit fea8d89493

View File

@ -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)\