send custom presence to self contact with the resource. fixes #3359

This commit is contained in:
Yann Leboulanger 2008-01-24 21:14:11 +00:00
parent 95c904f5d2
commit d7dd4c6396
1 changed files with 5 additions and 1 deletions

View File

@ -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