fix: add missing awaits in carbons handling
This commit is contained in:
parent
742063058e
commit
2005ed6ae0
1 changed files with 2 additions and 4 deletions
|
@ -83,8 +83,6 @@ class HandlerCore:
|
||||||
"""
|
"""
|
||||||
Enable carbons & blocking on session start if wanted and possible
|
Enable carbons & blocking on session start if wanted and possible
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
iq = await self.core.xmpp.plugin['xep_0030'].get_info(
|
iq = await self.core.xmpp.plugin['xep_0030'].get_info(
|
||||||
jid=self.core.xmpp.boundjid.domain
|
jid=self.core.xmpp.boundjid.domain
|
||||||
)
|
)
|
||||||
|
@ -161,7 +159,7 @@ class HandlerCore:
|
||||||
if is_muc_pm:
|
if is_muc_pm:
|
||||||
log.debug('%s sent a MUC-PM, ignoring carbon', recv['from'])
|
log.debug('%s sent a MUC-PM, ignoring carbon', recv['from'])
|
||||||
elif is_muc_pm is None:
|
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,
|
recv['from'].bare,
|
||||||
node='conference',
|
node='conference',
|
||||||
)
|
)
|
||||||
|
@ -187,7 +185,7 @@ class HandlerCore:
|
||||||
if is_muc_pm:
|
if is_muc_pm:
|
||||||
await self.on_groupchat_private_message(sent, sent=True)
|
await self.on_groupchat_private_message(sent, sent=True)
|
||||||
elif is_muc_pm is None:
|
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,
|
sent['to'].bare,
|
||||||
node='conference',
|
node='conference',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue