Merge branch 'mam-fix-disco' into 'master'
mam: disco before query only if groupchat See merge request poezio/poezio!65
This commit is contained in:
commit
a854f77afa
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ async def query(
|
||||||
callback: Optional[Callable] = None,
|
callback: Optional[Callable] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
try:
|
try:
|
||||||
iq = await core.xmpp.plugin['xep_0030'].get_info(jid=remote_jid)
|
query_jid = remote_jid if groupchat else JID(core.xmpp.boundjid.bare)
|
||||||
|
iq = await core.xmpp.plugin['xep_0030'].get_info(jid=query_jid)
|
||||||
except (IqError, IqTimeout):
|
except (IqError, IqTimeout):
|
||||||
raise DiscoInfoException
|
raise DiscoInfoException
|
||||||
if 'urn:xmpp:mam:2' not in iq['disco_info'].get_features():
|
if 'urn:xmpp:mam:2' not in iq['disco_info'].get_features():
|
||||||
|
|
Loading…
Reference in a new issue