prevent bug when forming a jid. Fixes #7428

This commit is contained in:
Yann Leboulanger 2013-08-15 10:00:42 +02:00
parent 77e790ceb9
commit c9831e0b96
1 changed files with 1 additions and 3 deletions

View File

@ -83,9 +83,7 @@ class StanzaSession(object):
def get_to(self):
to = str(self.jid)
if self.resource and not to.endswith(self.resource):
to += '/' + self.resource
return to
return gajim.get_jid_without_resource(to) + self.resource
def remove_events(self, types):
"""