aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Matrix.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-12-17 01:25:10 +0100
committerdec05eba <dec05eba@protonmail.com>2023-12-17 01:25:10 +0100
commit785a3f0a062247910f1ae988c141a7c613a90d51 (patch)
tree6105b414c7ae7589c8a61e1909c42254ddad4517 /src/plugins/Matrix.cpp
parent7b91566f303b4afd2deeb6c893ee805e4d62fdaf (diff)
Matrix: keep edited in progress message on esc, clear text when going from edit to insert/reply
Diffstat (limited to 'src/plugins/Matrix.cpp')
-rw-r--r--src/plugins/Matrix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 5882653..aef65fa 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -2469,6 +2469,10 @@ namespace QuickMedia {
return homeserver + "/_matrix/media/r0/download/" + thumbnail_url_extract_media_id(mxc_id);
}
+ RoomExtraData& Matrix::get_room_extra_data(RoomData *room) {
+ return room_extra_data_by_id[room->id];
+ }
+
std::shared_ptr<UserInfo> Matrix::parse_user_info(const rapidjson::Value &json, const std::string &user_id, RoomData *room_data, int64_t timestamp) {
assert(json.IsObject());
std::string avatar_url_str;