check active tab with control variable, not jid. fixes #3876
This commit is contained in:
parent
37b6f7058a
commit
685707e2e0
|
@ -685,8 +685,8 @@ class ChatControlBase(MessageControl):
|
||||||
if self.type_id == message_control.TYPE_GC:
|
if self.type_id == message_control.TYPE_GC:
|
||||||
gc_message = True
|
gc_message = True
|
||||||
|
|
||||||
if ((self.parent_win and (not self.parent_win.get_active_jid() or \
|
if ((self.parent_win and (not self.parent_win.get_active_control() or \
|
||||||
full_jid != self.parent_win.get_active_jid() or \
|
self != self.parent_win.get_active_control() or \
|
||||||
not self.parent_win.is_active() or not end)) or \
|
not self.parent_win.is_active() or not end)) or \
|
||||||
(gc_message and \
|
(gc_message and \
|
||||||
jid in gajim.interface.minimized_controls[self.account])) and \
|
jid in gajim.interface.minimized_controls[self.account])) and \
|
||||||
|
@ -719,8 +719,8 @@ class ChatControlBase(MessageControl):
|
||||||
if not self.parent_win:
|
if not self.parent_win:
|
||||||
return
|
return
|
||||||
|
|
||||||
if (not self.parent_win.get_active_jid() or \
|
if (not self.parent_win.get_active_control() or \
|
||||||
full_jid != self.parent_win.get_active_jid() or \
|
self != self.parent_win.get_active_control() or \
|
||||||
not self.parent_win.is_active() or not end) and \
|
not self.parent_win.is_active() or not end) and \
|
||||||
kind in ('incoming', 'incoming_queue'):
|
kind in ('incoming', 'incoming_queue'):
|
||||||
self.parent_win.redraw_tab(self)
|
self.parent_win.redraw_tab(self)
|
||||||
|
|
Loading…
Reference in New Issue