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

use helper func

parent 1da15f17
No related branches found
No related tags found
No related merge requests found
......@@ -494,13 +494,7 @@ def handle_event_msg(self, account, array):
'enabled') and not first:
helpers.play_sound('next_message_received')
show_notification = False
if gajim.config.get('notify_on_new_message'):
# check OUR status and if we allow notifications for that status
if gajim.config.get('autopopupaway'): # always show notification
show_notification = True
elif gajim.connections[account].connected in (2, 3): # we're online or chat
show_notification = True
show_notification = gajim.show_notification()
jid_of_control = jid
if chat_control and chat_control.type_id == message_control.TYPE_GC:
......
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