Fix a traceback when creating a conversation tab
This commit is contained in:
parent
16bdfdfe81
commit
74ba7a85e6
2 changed files with 6 additions and 2 deletions
|
@ -451,7 +451,7 @@ class ChatTab(Tab):
|
|||
Tab.__init__(self, core)
|
||||
self.name = jid
|
||||
self.text_win = None
|
||||
self.remote_wants_chatstates = False
|
||||
self._remote_wants_chatstates = False
|
||||
self.directed_presence = None
|
||||
self._text_buffer = TextBuffer()
|
||||
self.chatstate = None # can be "active", "composing", "paused", "gone", "inactive"
|
||||
|
@ -488,6 +488,10 @@ class ChatTab(Tab):
|
|||
for message in logs:
|
||||
self._text_buffer.add_message(**message)
|
||||
|
||||
@property
|
||||
def remote_wants_chatstates(self):
|
||||
return self._remote_wants_chatstates
|
||||
|
||||
@property
|
||||
def general_jid(self):
|
||||
return NotImplementedError
|
||||
|
|
|
@ -69,7 +69,7 @@ class MucTab(ChatTab):
|
|||
# We send active, composing and paused states to the MUC because
|
||||
# the chatstate may or may not be filtered by the MUC,
|
||||
# that’s not our problem.
|
||||
self.remote_wants_chatstates = True
|
||||
self._remote_wants_chatstates = True
|
||||
# Self ping event, so we can cancel it when we leave the room
|
||||
self.self_ping_event = None
|
||||
# UI stuff
|
||||
|
|
Loading…
Reference in a new issue