From 62f17dffbd30a3d2e69d5110359055eed0cdca5a Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 13 Jan 2020 12:37:02 +0100 Subject: Fix replies in encrypted rooms The relation needs to be unencrypted... --- src/timeline/TimelineModel.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/timeline/TimelineModel.cpp') diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index a1367bf3..3064ab4a 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -734,6 +734,10 @@ TimelineModel::decryptEvent(const mtx::events::EncryptedEventdevice_id(), doc.dump()); + auto data = + olm::encrypt_group_message(room_id, http::client()->device_id(), doc); http::client()->send_room_message( room_id, @@ -902,7 +906,7 @@ TimelineModel::sendEncryptedMessage(const std::string &txn_id, nlohmann::json co std::make_shared([megolm_payload, room_id, doc, txn_id, this]() { try { auto data = olm::encrypt_group_message( - room_id, http::client()->device_id(), doc.dump()); + room_id, http::client()->device_id(), doc); http::client() ->send_room_message( -- cgit 1.5.1