This commit is contained in:
Travis Shirk 2006-01-08 00:15:54 +00:00
parent 2e5fe5173b
commit 41be225383
1 changed files with 9 additions and 8 deletions

View File

@ -1768,12 +1768,11 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
# We print if window is opened and it's not a single message
if gajim.interface.msg_win_mgr.has_window(jid) and msg_type != 'normal':
# FIXME: Remove
# typ = ''
# if msg_type == 'error':
# typ = 'status'
typ = ''
if msg_type == 'error':
typ = 'status'
ctl = gajim.interface.msg_win_mgr.get_control(jid)
ctl.print_conversation(msg, jid, tim = tim, encrypted = encrypted,
ctl.print_conversation(msg, typ, tim = tim, encrypted = encrypted,
subject = subject)
return
@ -1970,8 +1969,10 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
if unrd:
unread = True
break
for ctl in win.controls():
jid = ctl.contact.jid
if gajim.last_message_time[acct].has_key(jid):
if time.time() - gajim.last_message_time[acct][jid] < 2:
recent = True
break