prevent bug when forming a jid. Fixes #7428
This commit is contained in:
parent
77e790ceb9
commit
c9831e0b96
|
@ -83,9 +83,7 @@ class StanzaSession(object):
|
||||||
|
|
||||||
def get_to(self):
|
def get_to(self):
|
||||||
to = str(self.jid)
|
to = str(self.jid)
|
||||||
if self.resource and not to.endswith(self.resource):
|
return gajim.get_jid_without_resource(to) + self.resource
|
||||||
to += '/' + self.resource
|
|
||||||
return to
|
|
||||||
|
|
||||||
def remove_events(self, types):
|
def remove_events(self, types):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue