From bb3852418ed25d01667c9648e5d10a9b6194480c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 13 Oct 2011 21:44:29 +0200 Subject: [PATCH] don't generate wrong jid when sending a single message to several contacts --- src/dialogs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index 68f953a0a..228c99780 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -3067,7 +3067,12 @@ class SingleMessageWindow: _('Please make sure you are connected with "%s".') % self.account) return 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: sender_list = [self.to_entry.get_text().decode('utf-8')]