summary refs log tree commit diff
path: root/src/Olm.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-05-08 00:13:24 +0200
committerGitHub <noreply@github.com>2020-05-08 00:13:24 +0200
commit7beaf868efa500767451666e562b72a9968b6b59 (patch)
tree519d0de73e8c4fb8f8d01e0375b847a287927570 /src/Olm.cpp
parentFix messages being immediately read again (diff)
parentRemove unused binding name (diff)
downloadnheko-7beaf868efa500767451666e562b72a9968b6b59.tar.xz
Merge pull request #192 from Nheko-Reborn/reactions
Reactions
Diffstat (limited to 'src/Olm.cpp')
-rw-r--r--src/Olm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Olm.cpp b/src/Olm.cpp

index c8e4c13c..8ea39566 100644 --- a/src/Olm.cpp +++ b/src/Olm.cpp
@@ -164,8 +164,8 @@ encrypt_group_message(const std::string &room_id, const std::string &device_id, using namespace mtx::events; // relations shouldn't be encrypted... - mtx::common::RelatesTo relation; - if (body["content"].count("m.relates_to") != 0) { + mtx::common::ReplyRelatesTo relation; + if (body["content"]["m.relates_to"].contains("m.in_reply_to")) { relation = body["content"]["m.relates_to"]; body["content"].erase("m.relates_to"); }