diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-11-13 02:05:27 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-11-13 02:05:27 +0100 |
commit | aea90e2c43d6dbf8b8276e1209f4d4abe1cea128 (patch) | |
tree | a21cd16b95e027d7e277e25089b63b45e2bdb735 /plugins | |
parent | 01f23292bf2451a0c7b9ada88c6314dcb09509b1 (diff) |
Matrix: fix message edits not being applied correctly
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Matrix.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index 788050b..77ef252 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -636,14 +636,14 @@ namespace QuickMedia { // |url| should only be set when uploading media. // TODO: Make api better. - 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 = ""); + 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 = "", const std::string &custom_transaction_id = ""); // |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 = "", 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); + PluginResult post_edit(RoomData *room, const std::string &body, void *relates_to, std::string &event_id_response, const std::string &custom_transaction_id = ""); // |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); + PluginResult post_reaction(RoomData *room, const std::string &body, void *relates_to, std::string &event_id_response, const std::string &custom_transaction_id = ""); // 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, void *relates_to = nullptr); @@ -795,7 +795,6 @@ namespace QuickMedia { std::vector<std::unique_ptr<RoomData>> invite_rooms; - std::unordered_set<std::string> my_events_transaction_ids; std::unordered_map<std::string, CustomEmoji> custom_emoji_by_key; std::unordered_set<std::string> silenced_invites; }; |