send gone chatstate to all tabs if many and we close window holding them
This commit is contained in:
parent
e3242773f5
commit
680dace366
|
@ -146,7 +146,7 @@ class Chat:
|
||||||
windows = self.plugin.windows[self.account][kind]
|
windows = self.plugin.windows[self.account][kind]
|
||||||
if kind == 'chats':
|
if kind == 'chats':
|
||||||
# send 'gone' chatstate to every tabbed chat tab
|
# send 'gone' chatstate to every tabbed chat tab
|
||||||
windows[jid].send_chatstate('gone')
|
windows[jid].send_chatstate('gone', jid)
|
||||||
gobject.source_remove(self.possible_paused_timeout_id[jid])
|
gobject.source_remove(self.possible_paused_timeout_id[jid])
|
||||||
gobject.source_remove(self.possible_inactive_timeout_id[jid])
|
gobject.source_remove(self.possible_inactive_timeout_id[jid])
|
||||||
if self.plugin.systray_enabled and self.nb_unread[jid] > 0:
|
if self.plugin.systray_enabled and self.nb_unread[jid] > 0:
|
||||||
|
|
|
@ -501,10 +501,6 @@ class TabbedChatWindow(chat.Chat):
|
||||||
if jid is None:
|
if jid is None:
|
||||||
jid = self.get_active_jid()
|
jid = self.get_active_jid()
|
||||||
|
|
||||||
# this happens sometime when we close fastly all tabs
|
|
||||||
if jid is '':
|
|
||||||
return
|
|
||||||
|
|
||||||
contact = gajim.get_first_contact_instance_from_jid(self.account, jid)
|
contact = gajim.get_first_contact_instance_from_jid(self.account, jid)
|
||||||
|
|
||||||
if contact is None:
|
if contact is None:
|
||||||
|
@ -559,6 +555,7 @@ class TabbedChatWindow(chat.Chat):
|
||||||
_('You are no longer in room "%s" or "%s" has left.') % \
|
_('You are no longer in room "%s" or "%s" has left.') % \
|
||||||
(room, nick)).get_response()
|
(room, nick)).get_response()
|
||||||
return
|
return
|
||||||
|
|
||||||
conversation_textview = self.xmls[jid].get_widget('conversation_textview')
|
conversation_textview = self.xmls[jid].get_widget('conversation_textview')
|
||||||
message_textview = self.xmls[jid].get_widget('message_textview')
|
message_textview = self.xmls[jid].get_widget('message_textview')
|
||||||
message_buffer = message_textview.get_buffer()
|
message_buffer = message_textview.get_buffer()
|
||||||
|
|
Loading…
Reference in New Issue