diff options
author | Tobias Fella <9750016+TobiasFella@users.noreply.github.com> | 2022-05-18 22:05:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 22:05:48 +0200 |
commit | 9c4cc1b9b065765843c81a0c555b3afa5122b61e (patch) | |
tree | 8da928bd42f3646e21b1f5752da878a6f0b2a47d /lib/events/encryptedevent.cpp | |
parent | c671867a0a3e2a6ad0e7ae6e93fa09467c06188f (diff) | |
download | libquotient-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.cpp | 2 |
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; } |