aboutsummaryrefslogtreecommitdiff
path: root/plugins/Matrix.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-29 19:31:22 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-29 19:31:22 +0200
commit555f0e7e910b2231073734816727379e1276aa6c (patch)
tree2081bb231c0526e8fa20f195e049af6d23d2525d /plugins/Matrix.hpp
parent1b82048e16ae998c780a31ff14317d4ac1fbbacd (diff)
Matrix: add media reply with ctrl+u
Diffstat (limited to 'plugins/Matrix.hpp')
-rw-r--r--plugins/Matrix.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index bf4ef94..b7d6d66 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -548,14 +548,14 @@ namespace QuickMedia {
PluginResult post_message(RoomData *room, const std::string &body, std::string &event_id_response, const std::optional<UploadInfo> &file_info, const std::optional<UploadInfo> &thumbnail_info, const std::string &msgtype = "");
// |relates_to| is from |BodyItem.userdata| and is of type |Message*|
// If |custom_transaction_id| is empty, then a new transaction id is generated
- PluginResult post_reply(RoomData *room, const std::string &body, void *relates_to, std::string &event_id_response, const std::string &custom_transaction_id = "");
+ PluginResult post_reply(RoomData *room, const std::string &body, void *relates_to, std::string &event_id_response, const std::string &custom_transaction_id = "", const std::optional<UploadInfo> &file_info = std::nullopt, const std::optional<UploadInfo> &thumbnail_info = std::nullopt);
// |relates_to| is from |BodyItem.userdata| and is of type |Message*|
PluginResult post_edit(RoomData *room, const std::string &body, void *relates_to, std::string &event_id_response);
// |relates_to| is from |BodyItem.userdata| and is of type |Message*|
PluginResult post_reaction(RoomData *room, const std::string &body, void *relates_to, std::string &event_id_response);
// If filename is empty then the filename is extracted from filepath
- PluginResult post_file(RoomData *room, const std::string &filepath, std::string filename, std::string &event_id_response, std::string &err_msg);
+ PluginResult post_file(RoomData *room, const std::string &filepath, std::string filename, std::string &event_id_response, std::string &err_msg, void *relates_to = nullptr);
PluginResult login(const std::string &username, const std::string &password, const std::string &homeserver, std::string &err_msg);
PluginResult logout();