Skip to content
Snippets Groups Projects
Commit 05529322 authored by nkour's avatar nkour
Browse files

fix a bad cut-paste

parent 5528e739
No related branches found
No related tags found
No related merge requests found
......@@ -470,9 +470,6 @@ def handle_event_msg(self, account, array):
if not chat_control and not gajim.awaiting_events[account].has_key(jid):
first = True
# array: (contact, msg, time, encrypted, msg_type, subject)
self.roster.on_message(jid, array[1], array[2], account, array[3],
msg_type, array[5], resource)
if gajim.config.get_per('soundevents', 'first_message_received',
'enabled') and first:
helpers.play_sound('first_message_received')
......@@ -558,6 +555,9 @@ def handle_event_msg(self, account, array):
notify.notify(_('New Message'), jid_of_control, account,
msg_type, path_to_image = path, text = txt)
# array: (contact, msg, time, encrypted, msg_type, subject)
self.roster.on_message(jid, array[1], array[2], account, array[3],
msg_type, array[5], resource)
if self.remote_ctrl:
self.remote_ctrl.raise_signal('NewMessage', (account, array))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment