From 023367b72b7f027d020ff3bb800f64b634294059 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Sun, 27 Nov 2016 01:20:41 +0100 Subject: [PATCH] Fix no-member error in matrix_room --- telematrix/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telematrix/__init__.py b/telematrix/__init__.py index e5759a1..7223ccd 100644 --- a/telematrix/__init__.py +++ b/telematrix/__init__.py @@ -351,7 +351,7 @@ async def matrix_room(request): chat = '_'.join(localpart.split('_')[1:]) # Look up the chat in the database - link = db.session.query(db.ChatLink).filter_by(tg_room=chat.id).first() + link = db.session.query(db.ChatLink).filter_by(tg_room=chat).first() if link: await matrix_post('client', 'createRoom', None, {'room_alias_name': localpart[1:]})