From 87a715aa1057b5677449517cd13b1a35ac871ca3 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 17 May 2018 17:20:56 +0300 Subject: [PATCH] Add missing await when joining chat with invite link --- mautrix_telegram/commands/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mautrix_telegram/commands/telegram.py b/mautrix_telegram/commands/telegram.py index ea01faf0..ff23d030 100644 --- a/mautrix_telegram/commands/telegram.py +++ b/mautrix_telegram/commands/telegram.py @@ -89,7 +89,7 @@ async def _join(evt, arg): except InviteHashExpiredError: return None, await evt.reply("Invite link expired.") try: - return evt.sender.client(ImportChatInviteRequest(invite_hash)), None + return (await evt.sender.client(ImportChatInviteRequest(invite_hash))), None except UserAlreadyParticipantError: return None, await evt.reply("You are already in that chat.") else: