teeny-tiny fix

This commit is contained in:
Brendan Taylor 2008-06-26 23:37:24 +00:00
parent b21a1e2489
commit 5a772a046c
2 changed files with 4 additions and 3 deletions

View File

@ -1034,6 +1034,7 @@ class Interface:
win.set_values(vcard)
# show avatar in chat
ctrl = None
if resource and self.msg_win_mgr.has_window(fjid, account):
win = self.msg_win_mgr.get_window(fjid, account)
ctrl = win.get_control(fjid, account)

View File

@ -445,11 +445,11 @@ class MessageWindow(object):
fjid = ctrl.get_full_jid()
jid = gajim.get_jid_without_resource(fjid)
fctrls = self.get_controls(fjid, ctrl.account)
bctrls = self.get_controls(jid, ctrl.account)
fctrl = self.get_control(fjid, ctrl.account)
bctrl = self.get_control(jid, ctrl.account)
# keep last_message_time around unless this was our last control with
# that jid
if not fctrls and not bctrls:
if not fctrl and not bctrl:
del gajim.last_message_time[ctrl.account][fjid]
# Disconnect tab DnD only if GTK version < 2.10