From 0d4b8bacce933e34a41769b1051b25f82f922201 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 5 Feb 2021 05:18:31 +0100 Subject: Matrix: fix crash when a room is being removed in one thread and the room description is set in another, at the same time --- plugins/Matrix.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index be89adb..df8fa43 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -136,7 +136,7 @@ namespace QuickMedia { bool last_message_read = true; bool users_fetched = false; time_t last_read_message_timestamp = 0; - void *userdata = nullptr; // Pointer to BodyItem. Note: this has to be valid as long as the room is valid + std::shared_ptr body_item; // These are messages fetched with |Matrix::get_message_by_id|. Needed to show replies, when replying to old message not part of /sync. // The value is nullptr if the message is fetched and cached but the event if referenced an invalid message. -- cgit v1.2.3