diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-11-29 17:54:12 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-11-29 17:54:12 +0100 |
commit | 5303ca008e760e4e4707c0816449fb83f278426b (patch) | |
tree | d42e4d2fdcfc55e3ff2ad7135dba7b9ba2078e1b /plugins | |
parent | 94152da2ef18a673a996e3d5cfb3780a8f5f7feb (diff) |
Matrix: set filesize limit to int64 and remove 300mb limit for non-image files
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Matrix.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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> dimensions; std::optional<double> 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<UserInfo> 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<int> upload_limit; + std::optional<int64_t> upload_limit; std::string next_batch; std::string next_notifications_token; std::mutex next_batch_mutex; |