diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/http-files/src/file_sender.vala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/http-files/src/file_sender.vala b/plugins/http-files/src/file_sender.vala index 3d250c1f..cb8839f3 100644 --- a/plugins/http-files/src/file_sender.vala +++ b/plugins/http-files/src/file_sender.vala @@ -63,6 +63,14 @@ public class HttpFileSender : FileSender, Object { return file_transfer.size < max_file_sizes[conversation.account]; } + public long get_file_size_limit(Conversation conversation) { + long? max_size = max_file_sizes[conversation.account]; + if (max_size != null) { + return max_size; + } + return -1; + } + public bool can_encrypt(Conversation conversation, FileTransfer file_transfer) { return false; } |