diff options
author | mathieui <mathieui@mathieui.net> | 2017-10-14 21:38:10 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-10-14 21:42:44 +0200 |
commit | 74ba7a85e6aace87fb4993cb99c83619a205a419 (patch) | |
tree | aff347aff2276593063fa65cea5846c4a66e1dc7 | |
parent | 16bdfdfe8159f3813221b9023b5b49bd6c570863 (diff) | |
download | poezio-74ba7a85e6aace87fb4993cb99c83619a205a419.tar.gz poezio-74ba7a85e6aace87fb4993cb99c83619a205a419.tar.bz2 poezio-74ba7a85e6aace87fb4993cb99c83619a205a419.tar.xz poezio-74ba7a85e6aace87fb4993cb99c83619a205a419.zip |
Fix a traceback when creating a conversation tab
-rw-r--r-- | poezio/tabs/basetabs.py | 6 | ||||
-rw-r--r-- | poezio/tabs/muctab.py | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index a0b4f4da..0570be27 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -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" @@ -489,6 +489,10 @@ class ChatTab(Tab): self._text_buffer.add_message(**message) @property + def remote_wants_chatstates(self): + return self._remote_wants_chatstates + + @property def general_jid(self): return NotImplementedError diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index b9d38072..966ba9d4 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -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 |