fix a traceback [do not pass empty jid]
This commit is contained in:
parent
7e570e66b4
commit
4108ef31b8
|
@ -138,6 +138,7 @@ class Chat:
|
|||
|
||||
nickname.set_text(start + self.names[jid])
|
||||
|
||||
|
||||
def on_window_destroy(self, widget, kind): #kind is 'chats' or 'gc'
|
||||
'''clean self.plugin.windows[self.account][kind]'''
|
||||
for jid in self.xmls:
|
||||
|
@ -272,6 +273,7 @@ class Chat:
|
|||
if self.widget_name == 'tabbed_chat_window':
|
||||
# send chatstate inactive to the one we're leaving
|
||||
# and active to the one we visit
|
||||
if old_jid != '':
|
||||
self.send_chatstate('inactive', old_jid)
|
||||
self.send_chatstate('active', new_jid)
|
||||
|
||||
|
|
Loading…
Reference in New Issue