fix: do not print a message on a muc not found

as we will nott actually create the tab.
This commit is contained in:
mathieui 2021-06-25 23:09:52 +02:00
parent 3315498134
commit c296768987

View file

@ -177,9 +177,9 @@ class Plugin(BasePlugin):
new_tabs.append(tab) new_tabs.append(tab)
old_tabs.remove(tab) old_tabs.remove(tab)
else: else:
self.api.information('Tab %s not found. Creating it' % jid, 'Warning')
# TODO: Add support for MucTab. Requires nickname. # TODO: Add support for MucTab. Requires nickname.
if cls in (tabs.DynamicConversationTab, tabs.StaticConversationTab): if cls in (tabs.DynamicConversationTab, tabs.StaticConversationTab):
self.api.information('Tab %s not found. Creating it' % jid, 'Warning')
new_tab = cls(self.core, jid) new_tab = cls(self.core, jid)
new_tabs.append(new_tab) new_tabs.append(new_tab)
else: else: