From 6933a73727c5d88a02fb5c9416a4ccaafc4d7b64 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 11 Apr 2022 18:05:23 +0200 Subject: Matrix: fix crash when copying body item with reactions and the other items reaction has not been loaded --- src/BodyItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BodyItem.cpp b/src/BodyItem.cpp index 431616d..192a7bf 100644 --- a/src/BodyItem.cpp +++ b/src/BodyItem.cpp @@ -60,8 +60,8 @@ namespace QuickMedia { reactions.clear(); for(auto &reaction : other.reactions) { Reaction reaction_copy; - reaction_copy.text = std::make_unique(*reaction.text); reaction_copy.userdata = reaction.userdata; + reaction_copy.text_color = reaction.text_color; reactions.push_back(std::move(reaction_copy)); } title = other.title; -- cgit v1.2.3