Add support for Encrypted to-device verification messages

This commit is contained in:
CH Chethan Reddy 2020-09-03 09:29:32 +05:30
parent 10f09d4f43
commit 5358854de3
3 changed files with 47 additions and 2 deletions

View file

@ -879,7 +879,7 @@ TimelineModel::sendEncryptedMessage(mtx::events::RoomEvent<T> 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 {