aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-11 19:40:30 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-11 19:40:30 +0100
commit2bddad9701422b9fcf01c547a10054eb17ccdceb (patch)
tree8f357d7ecac8c04a515be3b779c7c582efdf5ff5 /plugins
parent4815b649c09fd461baf0e48306abab7f790f5ca5 (diff)
Dont format matrix reaction locally, bypass pantalaimon for custom emoji
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index d5fe251..1744ce0 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -28,6 +28,7 @@ namespace QuickMedia {
std::string formatted_text_to_qm_text(Matrix *matrix, const char *str, size_t size, bool allow_formatted_text, mgl::vec2i image_max_size = mgl::vec2i(0, 0));
// |image_max_size| 0, 0 means no max size
std::string message_to_qm_text(Matrix *matrix, const Message *message, bool allow_formatted_text = true, mgl::vec2i image_max_size = mgl::vec2i(0, 0));
+ std::string pantalaimon_url_to_homeserver_url(Matrix *matrix, const std::string &url);
struct TimestampedDisplayData {
std::string data;
@@ -736,7 +737,7 @@ namespace QuickMedia {
void remove_rooms(const rapidjson::Value &leave_json);
PluginResult get_pinned_events(RoomData *room, std::vector<std::string> &pinned_events);
std::shared_ptr<Message> parse_message_event(const rapidjson::Value &event_item_json, RoomData *room_data);
- PluginResult upload_file(const std::string &filepath, std::string filename, UploadInfo &file_info, UploadInfo &thumbnail_info, std::string &err_msg, bool upload_thumbnail = true);
+ PluginResult upload_file(const std::string &filepath, std::string filename, UploadInfo &file_info, UploadInfo &thumbnail_info, std::string &err_msg, bool upload_thumbnail = true, bool bypass_proxy = false);
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