From d7dd4c6396efdb43469b5223effc637952091e36 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 24 Jan 2008 21:14:11 +0000 Subject: [PATCH] send custom presence to self contact with the resource. fixes #3359 --- src/roster_window.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index a35b40eed..7cd8fe169 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -3587,13 +3587,17 @@ class RosterWindow: message = dlg.run() if message is not None: # None if user pressed Cancel for (contact, account) in contact_list: + our_jid = gajim.get_jid_from_account(account) accounts = [] if group and account not in accounts: if not gajim.interface.status_sent_to_groups.has_key(account): gajim.interface.status_sent_to_groups[account] = {} gajim.interface.status_sent_to_groups[account][group] = show accounts.append(group) - self.send_status(account, show, message, to = contact.jid) + jid = contact.jid + if jid == our_jid: + jid += '/' + contact.resource + self.send_status(account, show, message, to=jid) if not gajim.interface.status_sent_to_users.has_key(account): gajim.interface.status_sent_to_users[account] = {} gajim.interface.status_sent_to_users[account][contact.jid] = show