aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/room.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 5a966ceb..2945111a 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -2127,7 +2127,7 @@ RoomEventPtr makeReplaced(const RoomEvent& target,
const RoomMessageEvent& replacement)
{
auto originalJson = target.originalJsonObject();
- originalJson[ContentKeyL] = replacement.contentJson();
+ originalJson[ContentKeyL] = replacement.contentJson().value("m.new_content"_ls);
auto unsignedData = originalJson.take(UnsignedKeyL).toObject();
auto relations = unsignedData.take("m.relations"_ls).toObject();