summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2022-04-03 17:02:53 +0200
committermathieui <mathieui@mathieui.net>2022-04-03 17:02:53 +0200
commit2005ed6ae01016e5958f4efaac2a4c522367141f (patch)
tree389f91fb0681b87adce56c1fd8c189bccfee54ac
parent742063058e6bc4ddbbef40648c202fdac1b84408 (diff)
downloadpoezio-2005ed6ae01016e5958f4efaac2a4c522367141f.tar.gz
poezio-2005ed6ae01016e5958f4efaac2a4c522367141f.tar.bz2
poezio-2005ed6ae01016e5958f4efaac2a4c522367141f.tar.xz
poezio-2005ed6ae01016e5958f4efaac2a4c522367141f.zip
fix: add missing awaits in carbons handling
-rw-r--r--poezio/core/handlers.py6
1 files 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',
)