aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index cbbd9e0e..1762fd5a 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -2089,6 +2089,9 @@ QString Room::Private::doSendEvent(const RoomEvent* pEvent)
encryptedEvent->setTransactionId(connection->generateTxnId());
encryptedEvent->setRoomId(id);
encryptedEvent->setSender(connection->userId());
+ if(pEvent->contentJson().contains("m.relates_to"_ls)) {
+ encryptedEvent->setRelation(pEvent->contentJson()["m.relates_to"_ls].toObject());
+ }
// We show the unencrypted event locally while pending. The echo check will throw the encrypted version out
_event = encryptedEvent;
}