From 2005ed6ae01016e5958f4efaac2a4c522367141f Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 3 Apr 2022 17:02:53 +0200 Subject: [PATCH] fix: add missing awaits in carbons handling --- poezio/core/handlers.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 4de95a35..a75ecc52 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -83,8 +83,6 @@ class HandlerCore: """ Enable carbons & blocking on session start if wanted and possible """ - - iq = await self.core.xmpp.plugin['xep_0030'].get_info( jid=self.core.xmpp.boundjid.domain ) @@ -161,7 +159,7 @@ class HandlerCore: if is_muc_pm: log.debug('%s sent a MUC-PM, ignoring carbon', recv['from']) elif is_muc_pm is None: - is_muc = self.core.xmpp.plugin['xep_0030'].has_identity( + is_muc = await self.core.xmpp.plugin['xep_0030'].has_identity( recv['from'].bare, node='conference', ) @@ -187,7 +185,7 @@ class HandlerCore: if is_muc_pm: await self.on_groupchat_private_message(sent, sent=True) elif is_muc_pm is None: - is_muc = self.core.xmpp.plugin['xep_0030'].has_identity( + is_muc = await self.core.xmpp.plugin['xep_0030'].has_identity( sent['to'].bare, node='conference', )