From 785a3f0a062247910f1ae988c141a7c613a90d51 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 17 Dec 2023 01:25:10 +0100 Subject: Matrix: keep edited in progress message on esc, clear text when going from edit to insert/reply --- src/plugins/Matrix.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/Matrix.cpp') 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 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; -- cgit v1.2.3