aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-02-05 05:18:31 +0100
committerdec05eba <dec05eba@protonmail.com>2021-02-05 05:18:31 +0100
commit0d4b8bacce933e34a41769b1051b25f82f922201 (patch)
treeef1894ccfd66c41351568937182f16abb6c754f4 /plugins
parent1591c329889b0cd6eb3d579e60eeaf93df131a71 (diff)
Matrix: fix crash when a room is being removed in one thread and the room description is set in another, at the same time
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp2
1 files changed, 1 insertions, 1 deletions
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<BodyItem> 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.