zeroconf: 'to' is of type JID and no string

use a class method to remove the resource from JID
This commit is contained in:
André Apitzsch 2017-04-10 23:53:54 +02:00
parent c058a1e125
commit 4725858ab1
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ class ClientZeroconf:
if to is None:
# Cant send undirected stanza over Zeroconf.
return -1
to = gajim.get_jid_without_resource(to)
to = to.getStripped()
stanza.setFrom(self.roster.zeroconf.name)
try: