Merge branch 'master' of github.com:SijmenSchoon/telematrix
This commit is contained in:
commit
2d317d1044
@ -358,7 +358,7 @@ async def matrix_room(request):
|
|||||||
chat = '_'.join(localpart.split('_')[1:])
|
chat = '_'.join(localpart.split('_')[1:])
|
||||||
|
|
||||||
# Look up the chat in the database
|
# 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:
|
if link:
|
||||||
await matrix_post('client', 'createRoom', None,
|
await matrix_post('client', 'createRoom', None,
|
||||||
{'room_alias_name': localpart[1:]})
|
{'room_alias_name': localpart[1:]})
|
||||||
|
Loading…
Reference in New Issue
Block a user