Changed message for MUC's which doesn't support MAM

This commit is contained in:
Madhur Garg 2019-08-13 07:56:07 +05:30
parent ddc23d7d89
commit 0602a7b0de

View file

@ -56,7 +56,7 @@ async def query(tab, remote_jid, top, start=None, end=None, before=None):
except (IqError, IqTimeout):
return tab.information('Failed to retrieve messages', 'Error')
if 'urn:xmpp:mam:2' not in iq['disco_info'].get_features():
return tab.core.information("This MUC doesn't support MAM.", "Error")
return tab.core.information("%s doesn't support MAM." % remote_jid, "Error")
if top:
if isinstance(tab, tabs.MucTab):
try: