From 51a23728694a3f1312cc9396fc093ca178457c3c Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 22 Apr 2020 15:44:12 +0200 Subject: Add file upload preview fixes #756 --- plugins/http-files/src/file_sender.vala | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/http-files/src') 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; } -- cgit v1.2.3-70-g09d2