changeset 3659896732e4 in /home/hg/repos/gajim

branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=3659896732e4
description: prevent bug when forming a jid. Fixes #7428

diffstat:

 src/common/stanza_session.py |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (14 lines):

diff -r ae1f7b8bf059 -r 3659896732e4 src/common/stanza_session.py
--- a/src/common/stanza_session.py      Wed Aug 14 18:58:48 2013 +0200
+++ b/src/common/stanza_session.py      Thu Aug 15 10:00:42 2013 +0200
@@ -83,9 +83,7 @@
 
     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):
         """
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to