Get real jid of the chatcontrol when we talk to specific ressource. This prevent systray icon to be stuck to
incomming message in some rare case (new message window + auto_open). Thanks beerfan for spoting this rare case :)
This commit is contained in:
parent
3cffe5564a
commit
285a7949f5
1 changed files with 4 additions and 1 deletions
|
@ -636,6 +636,9 @@ class ChatControlBase(MessageControl):
|
||||||
def on_conversation_vadjustment_value_changed(self, widget):
|
def on_conversation_vadjustment_value_changed(self, widget):
|
||||||
if not self.nb_unread:
|
if not self.nb_unread:
|
||||||
return
|
return
|
||||||
|
if self.resource:
|
||||||
|
jid = self.contact.get_full_jid()
|
||||||
|
else:
|
||||||
jid = self.contact.jid
|
jid = self.contact.jid
|
||||||
if self.conv_textview.at_the_end() and \
|
if self.conv_textview.at_the_end() and \
|
||||||
self.parent_win.get_active_control() == self and \
|
self.parent_win.get_active_control() == self and \
|
||||||
|
|
Loading…
Add table
Reference in a new issue