From 0b79e47c8a6fbd33aadf45fab1cfdfd9f807442e Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Sun, 24 Sep 2006 12:30:48 +0000 Subject: [PATCH] create a fake contact for notification --- src/gajim.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index bace3ca4d..c521f9095 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -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)