From d636d57df4d447b95a014b8b5728ae928f05ebbf Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 1 Jul 2016 00:24:15 +0200 Subject: Fix dynamic/static conversation tab --- poezio/tabs/conversationtab.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index 70eed405..99c4b122 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -370,13 +370,13 @@ class DynamicConversationTab(ConversationTab): a full jid, and unlocked, as described in the XEP-0296. Only one DynamicConversationTab can be opened for a given jid. """ - def __init__(self, jid, resource=None): + def __init__(self, core, jid, resource=None): self.locked_resource = None self.name = safeJID(jid).bare if resource: self.lock(resource) self.info_header = windows.DynamicConversationInfoWin() - ConversationTab.__init__(self, jid) + ConversationTab.__init__(self, core, jid) self.register_command('unlock', self.unlock_command, shortdesc='Unlock the conversation from a particular resource.') @@ -476,9 +476,8 @@ class StaticConversationTab(ConversationTab): A conversation tab associated with one Full JID. It cannot be locked to an different resource or unlocked. """ - def __init__(self, jid): + def __init__(self, core, jid): assert(safeJID(jid).resource) self.info_header = windows.ConversationInfoWin() - ConversationTab.__init__(self, jid) - + ConversationTab.__init__(self, core, jid) -- cgit v1.2.3