don't require to still be in the room to read pm. Fixes #4570
This commit is contained in:
parent
49c4c4ee79
commit
2633b5bf16
|
@ -991,9 +991,10 @@ class ChatControlBase(MessageControl):
|
||||||
room_jid)
|
room_jid)
|
||||||
if contact:
|
if contact:
|
||||||
gajim.interface.roster.draw_contact(room_jid, self.account)
|
gajim.interface.roster.draw_contact(room_jid, self.account)
|
||||||
groupchat_control.draw_contact(nick)
|
if groupchat_control:
|
||||||
if groupchat_control.parent_win:
|
groupchat_control.draw_contact(nick)
|
||||||
groupchat_control.parent_win.redraw_tab(groupchat_control)
|
if groupchat_control.parent_win:
|
||||||
|
groupchat_control.parent_win.redraw_tab(groupchat_control)
|
||||||
else:
|
else:
|
||||||
gajim.interface.roster.draw_contact(jid, self.account)
|
gajim.interface.roster.draw_contact(jid, self.account)
|
||||||
gajim.interface.roster.show_title()
|
gajim.interface.roster.show_title()
|
||||||
|
|
|
@ -121,7 +121,10 @@ class PrivateChatControl(ChatControl):
|
||||||
room_ctrl = gajim.interface.msg_win_mgr.get_gc_control(room_jid, account)
|
room_ctrl = gajim.interface.msg_win_mgr.get_gc_control(room_jid, account)
|
||||||
if room_jid in gajim.interface.minimized_controls[account]:
|
if room_jid in gajim.interface.minimized_controls[account]:
|
||||||
room_ctrl = gajim.interface.minimized_controls[account][room_jid]
|
room_ctrl = gajim.interface.minimized_controls[account][room_jid]
|
||||||
self.room_name = room_ctrl.name
|
if room_ctrl:
|
||||||
|
self.room_name = room_ctrl.name
|
||||||
|
else:
|
||||||
|
self.room_name = room_jid
|
||||||
self.gc_contact = gc_contact
|
self.gc_contact = gc_contact
|
||||||
ChatControl.__init__(self, parent_win, contact, account, session)
|
ChatControl.__init__(self, parent_win, contact, account, session)
|
||||||
self.TYPE_ID = 'pm'
|
self.TYPE_ID = 'pm'
|
||||||
|
|
Loading…
Reference in New Issue