Skip to content
Snippets Groups Projects
Commit 0b79e47c authored by dkirov's avatar dkirov
Browse files

create a fake contact for notification

parent f633615b
No related branches found
No related tags found
No related merge requests found
......@@ -581,7 +581,10 @@ class Interface:
if gajim.config.get('ignore_unknown_contacts') and \
not gajim.contacts.get_contact(account, jid) and not pm:
return
if not contact:
# contact is not in the roster, create a fake one to display
# notification
contact = common.contacts.Contact(jid = jid, resource = resource)
advanced_notif_num = notify.get_advanced_notification('message_received',
account, contact)
......
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