don't generate wrong jid when sending a single message to several contacts
This commit is contained in:
parent
e4c9820146
commit
bb3852418e
|
@ -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')]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue