zeroconf: 'to' is of type JID and no string
use a class method to remove the resource from JID
This commit is contained in:
parent
c058a1e125
commit
4725858ab1
|
@ -756,7 +756,7 @@ class ClientZeroconf:
|
|||
if to is None:
|
||||
# Can’t send undirected stanza over Zeroconf.
|
||||
return -1
|
||||
to = gajim.get_jid_without_resource(to)
|
||||
to = to.getStripped()
|
||||
stanza.setFrom(self.roster.zeroconf.name)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue