summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-07-01 00:24:15 +0200
committermathieui <mathieui@mathieui.net>2016-07-01 00:24:15 +0200
commitd636d57df4d447b95a014b8b5728ae928f05ebbf (patch)
tree868e5d77adb40a5195e8dacc02e6cf9bb8be6372
parent3e2839f74ef3253511fd4c9162663af8b5fa2f5b (diff)
downloadpoezio-d636d57df4d447b95a014b8b5728ae928f05ebbf.tar.gz
poezio-d636d57df4d447b95a014b8b5728ae928f05ebbf.tar.bz2
poezio-d636d57df4d447b95a014b8b5728ae928f05ebbf.tar.xz
poezio-d636d57df4d447b95a014b8b5728ae928f05ebbf.zip
Fix dynamic/static conversation tab
-rw-r--r--poezio/tabs/conversationtab.py9
1 files 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)