diff options
author | hrxi <hrrrxi@gmail.com> | 2019-06-23 14:53:18 +0200 |
---|---|---|
committer | hrxi <hrrrxi@gmail.com> | 2019-07-09 11:21:39 +0200 |
commit | 877c46628fa2836f9226e24a3d0a84b9a3f821e6 (patch) | |
tree | 08f319b9223ed8eac4c44e70dfc77ead881e722c /libdino/src/service/file_manager.vala | |
parent | 6c480b862eefc38b2d3ba8dc7e02ddbe8d13edee (diff) | |
download | dino-877c46628fa2836f9226e24a3d0a84b9a3f821e6.tar.gz dino-877c46628fa2836f9226e24a3d0a84b9a3f821e6.zip |
Implement file sending via Jingle
This is still disabled by default until prioritization is implemented;
otherwise this could be preferred to HTTP uploads.
File sending only works via Jingle In-Band-Bytestreams right now, more
transports are going to be implemented.
To test this, uncomment the line with `JingleFileTransfer` in
libdino/src/application.vala.
Diffstat (limited to 'libdino/src/service/file_manager.vala')
-rw-r--r-- | libdino/src/service/file_manager.vala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libdino/src/service/file_manager.vala b/libdino/src/service/file_manager.vala index 6f8ccee4..9873539a 100644 --- a/libdino/src/service/file_manager.vala +++ b/libdino/src/service/file_manager.vala @@ -65,6 +65,7 @@ public class FileManager : StreamInteractionModule, Object { foreach (FileSender file_sender in file_senders) { if (file_sender.can_send(conversation, file_transfer)) { + // TODO(hrxi): Currently, this tries to send the file with every transfer available, but it should probably only select one. file_sender.send_file(conversation, file_transfer); } } |