aboutsummaryrefslogtreecommitdiff
path: root/lib/events/encryptedevent.cpp
diff options
context:
space:
mode:
authorTobias Fella <9750016+TobiasFella@users.noreply.github.com>2022-05-18 22:05:48 +0200
committerGitHub <noreply@github.com>2022-05-18 22:05:48 +0200
commit9c4cc1b9b065765843c81a0c555b3afa5122b61e (patch)
tree8da928bd42f3646e21b1f5752da878a6f0b2a47d /lib/events/encryptedevent.cpp
parentc671867a0a3e2a6ad0e7ae6e93fa09467c06188f (diff)
downloadlibquotient-9c4cc1b9b065765843c81a0c555b3afa5122b61e.tar.gz
libquotient-9c4cc1b9b065765843c81a0c555b3afa5122b61e.zip
Update lib/events/encryptedevent.cpp
Co-authored-by: Alexey Rusakov <Kitsune-Ral@users.sf.net>
Diffstat (limited to 'lib/events/encryptedevent.cpp')
-rw-r--r--lib/events/encryptedevent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/encryptedevent.cpp b/lib/events/encryptedevent.cpp
index 3af3d6ff..c97ccc16 100644
--- a/lib/events/encryptedevent.cpp
+++ b/lib/events/encryptedevent.cpp
@@ -64,7 +64,7 @@ RoomEventPtr EncryptedEvent::createDecrypted(const QString &decrypted) const
void EncryptedEvent::setRelation(const QJsonObject& relation)
{
- auto content = editJson()["content"_ls].toObject();
+ auto content = contentJson();
content["m.relates_to"] = relation;
editJson()["content"] = content;
}