Philipp Hörist pushed to branch master at gajim / gajim

Commits:
c110d8af by Stephen Paul Weber at 2017-03-28T19:11:18-05:00
Allow IBB FT to bare JIDs again

Currently works on released gajim, but not on nightly.

This explicit check for resource in the to-jid just returns if there is no
resource. It doesn't even cancel the file transfer or anything, it just
stops... which looks to the user like a file transfer hang.  Removing
the check makes Gajim work as expected.

Closes #8581

- - - - -
2f1cad1c by Philipp Hörist at 2017-03-29T15:29:08+02:00
Merge branch 'allow-ibb-to-bare-jid' into 'master'

Allow IBB FT to bare JIDs again

Closes #8581

See merge request !71
- - - - -


1 changed file:

- src/common/protocol/bytestream.py


Changes:

=====================================
src/common/protocol/bytestream.py
=====================================
--- a/src/common/protocol/bytestream.py
+++ b/src/common/protocol/bytestream.py
@@ -843,8 +843,6 @@ class ConnectionIBBytestream(ConnectionBytestream):
         Take into account that recommended stanza size is 4k and IBB uses
         base64 encoding that increases size of data by 1/3.
         """
-        if not nbxmpp.JID(to).getResource():
-            return
         file_props = FilesProp.getFilePropBySid(sid)
         file_props.direction = '|>' + to
         file_props.block_size = blocksize



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/compare/5cc92efcb61118e62e3b2f3ac6aca47a575a0f03...2f1cad1c8133ce36100705b7a7be6e7ae6bcefd9
_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to