summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-13 19:04:02 +0200
committermathieui <mathieui@mathieui.net>2017-10-13 19:04:19 +0200
commit858e3332791d74c25f0abd7659276ce15db6e1cf (patch)
tree2a580d0a759875cacc906be54a271a04e0035094
parentbacbd835eb799f33e3d449bd7803458db6a99d51 (diff)
downloadpoezio-858e3332791d74c25f0abd7659276ce15db6e1cf.tar.gz
poezio-858e3332791d74c25f0abd7659276ce15db6e1cf.tar.bz2
poezio-858e3332791d74c25f0abd7659276ce15db6e1cf.tar.xz
poezio-858e3332791d74c25f0abd7659276ce15db6e1cf.zip
Clean the presence buffer whenever we leave the room
-rw-r--r--poezio/tabs/muctab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index ce43dd0e..459e1e06 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -572,7 +572,6 @@ class MucTab(ChatTab):
current_status.show)
def leave_room(self, message):
- self.presence_buffer = []
if self.joined:
info_col = dump_tuple(get_theme().COLOR_INFORMATION_TEXT)
char_quit = get_theme().CHAR_QUIT
@@ -1595,6 +1594,7 @@ class MucTab(ChatTab):
Set the state of the room as not joined, so
we can know if we can join it, send messages to it, etc
"""
+ self.presence_buffer = []
self.users = []
if self is not self.core.current_tab():
self.state = 'disconnected'