Merge branch 'allow-ibb-to-bare-jid' into 'master'

Allow IBB FT to bare JIDs again

Closes #8581

See merge request !71
This commit is contained in:
Philipp Hörist 2017-03-29 15:29:08 +02:00
commit 2f1cad1c81
1 changed files with 0 additions and 2 deletions

View File

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