From 5358854de37fcf51c5d24f022b231da17f3b85c7 Mon Sep 17 00:00:00 2001 From: CH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com> Date: Thu, 3 Sep 2020 09:29:32 +0530 Subject: Add support for Encrypted to-device verification messages --- src/timeline/TimelineModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timeline/TimelineModel.cpp') diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index aea2645a..8f0e470e 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -879,7 +879,7 @@ TimelineModel::sendEncryptedMessage(mtx::events::RoomEvent msg, mtx::events:: using namespace mtx::identifiers; json doc = {{"type", mtx::events::to_string(eventType)}, - {"content", msg.content}, + {"content", json(msg.content)}, {"room_id", room_id}}; try { -- cgit 1.5.1