From 5303ca008e760e4e4707c0816449fb83f278426b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 29 Nov 2022 17:54:12 +0100 Subject: Matrix: set filesize limit to int64 and remove 300mb limit for non-image files --- plugins/Matrix.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index 8b9dcc9..0801418 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -260,7 +260,7 @@ namespace QuickMedia { struct UploadInfo { ContentType content_type; - size_t file_size; + int64_t file_size = 0; std::optional dimensions; std::optional duration_seconds; std::string content_uri; @@ -718,7 +718,7 @@ namespace QuickMedia { std::string message_get_author_displayname(Message *message) const; // Cached - PluginResult get_config(int *upload_size); + PluginResult get_config(int64_t *upload_size); std::shared_ptr get_me(RoomData *room); @@ -804,7 +804,7 @@ namespace QuickMedia { std::string homeserver; std::string homeserver_domain; std::string well_known_base_url; - std::optional upload_limit; + std::optional upload_limit; std::string next_batch; std::string next_notifications_token; std::mutex next_batch_mutex; -- cgit v1.2.3