don't generate wrong jid when sending a single message to several contacts

This commit is contained in:
Yann Leboulanger 2011-10-13 21:44:29 +02:00
parent e4c9820146
commit bb3852418e
1 changed files with 6 additions and 1 deletions

View File

@ -3067,7 +3067,12 @@ class SingleMessageWindow:
_('Please make sure you are connected with "%s".') % self.account) _('Please make sure you are connected with "%s".') % self.account)
return return
if isinstance(self.to, list): if isinstance(self.to, list):
sender_list = [i[0].jid + '/' + i[0].resource for i in self.to] sender_list = []
for i in self.to:
if i[0].resource:
sender_list.append(i[0].jid + '/' + i[0].resource)
else:
sender_list.append(i[0].jid)
else: else:
sender_list = [self.to_entry.get_text().decode('utf-8')] sender_list = [self.to_entry.get_text().decode('utf-8')]