remove private messges from unread_messages table in logs.db

This commit is contained in:
Yann Leboulanger 2007-06-25 19:34:23 +00:00
parent ec31beb74a
commit 519bfa9352
2 changed files with 3 additions and 3 deletions

View File

@ -773,7 +773,7 @@ class Interface:
if pm: if pm:
nickname = resource nickname = resource
groupchat_control.on_private_message(nickname, message, array[2], groupchat_control.on_private_message(nickname, message, array[2],
xhtml) xhtml, msg_id)
else: else:
# array: (jid, msg, time, encrypted, msg_type, subject) # array: (jid, msg, time, encrypted, msg_type, subject)
if encrypted: if encrypted:

View File

@ -527,7 +527,7 @@ class GroupchatControl(ChatControlBase):
else: else:
self.print_conversation(msg, nick, tim, xhtml) self.print_conversation(msg, nick, tim, xhtml)
def on_private_message(self, nick, msg, tim, xhtml): def on_private_message(self, nick, msg, tim, xhtml, msg_id = None):
# Do we have a queue? # Do we have a queue?
fjid = self.room_jid + '/' + nick fjid = self.room_jid + '/' + nick
no_queue = len(gajim.events.get_events(self.account, fjid)) == 0 no_queue = len(gajim.events.get_events(self.account, fjid)) == 0
@ -539,7 +539,7 @@ class GroupchatControl(ChatControlBase):
return return
event = gajim.events.create_event('pm', (msg, '', 'incoming', tim, event = gajim.events.create_event('pm', (msg, '', 'incoming', tim,
False, '', None, xhtml)) False, '', msg_id, xhtml))
gajim.events.add_event(self.account, fjid, event) gajim.events.add_event(self.account, fjid, event)
autopopup = gajim.config.get('autopopup') autopopup = gajim.config.get('autopopup')