correctly create events for pm messages

This commit is contained in:
Yann Leboulanger 2011-11-08 20:01:51 +01:00
parent 1ce42dc5f5
commit b7316cc206
2 changed files with 4 additions and 3 deletions

View File

@ -1000,7 +1000,7 @@ class GroupchatControl(ChatControlBase):
no_queue = len(gajim.events.get_events(self.account, fjid)) == 0
event = gajim.events.create_event('pm', (msg, '', 'incoming', tim,
encrypted, '', msg_id, xhtml, session, displaymarking))
encrypted, '', msg_id, xhtml, session, None, displaymarking, False))
gajim.events.add_event(self.account, fjid, event)
autopopup = gajim.config.get('autopopup')

View File

@ -337,8 +337,9 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
contact)
event = gajim.events.create_event(type_, (msg, subject, msg_type, tim,
encrypted, resource, msg_id, xhtml, self, form_node, displaymarking),
show_in_roster=show_in_roster, show_in_systray=show_in_systray)
encrypted, resource, msg_id, xhtml, self, form_node, displaymarking,
False), show_in_roster=show_in_roster,
show_in_systray=show_in_systray)
gajim.events.add_event(self.conn.name, fjid, event)