aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-28 14:07:34 +0200
committerdec05eba <dec05eba@protonmail.com>2021-03-28 14:07:34 +0200
commit84a0496d635cad9c49ea76117f71aa7e3ac964ed (patch)
treebcfe55820d8ae164b122d990efcddbfd941b834e /plugins
parent50fba2bd585aa51f41d98f70afa4760fa03c92b0 (diff)
Use imagemagick to create thumbnails instead of doing it ourselves. Better result and less memory usage because out of process memory reclaimed on exit
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index 26ad926..da55f81 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -524,7 +524,7 @@ namespace QuickMedia {
void add_invites(const rapidjson::Value &invite_json);
void remove_rooms(const rapidjson::Value &leave_json);
std::shared_ptr<Message> parse_message_event(const rapidjson::Value &event_item_json, RoomData *room_data);
- PluginResult upload_file(RoomData *room, const std::string &filepath, UploadInfo &file_info, UploadInfo &thumbnail_info, std::string &err_msg);
+ PluginResult upload_file(RoomData *room, const std::string &filepath, UploadInfo &file_info, UploadInfo &thumbnail_info, std::string &err_msg, bool upload_thumbnail = true);
void add_room(std::unique_ptr<RoomData> room);
void remove_room(const std::string &room_id);
// Returns false if an invite to the room already exists