From 858e3332791d74c25f0abd7659276ce15db6e1cf Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 13 Oct 2017 19:04:02 +0200 Subject: Clean the presence buffer whenever we leave the room --- poezio/tabs/muctab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio') 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' -- cgit v1.2.3