Get rid of 'using json = nlohmann::json'
This commit is contained in:
parent
b0c353c550
commit
8cdfbf9391
10 changed files with 198 additions and 187 deletions
|
|
@ -1346,9 +1346,9 @@ TimelineModel::sendEncryptedMessage(mtx::events::RoomEvent<T> msg, mtx::events::
|
|||
using namespace mtx::events;
|
||||
using namespace mtx::identifiers;
|
||||
|
||||
json doc = {{"type", mtx::events::to_string(eventType)},
|
||||
{"content", json(msg.content)},
|
||||
{"room_id", room_id}};
|
||||
nlohmann::json doc = {{"type", mtx::events::to_string(eventType)},
|
||||
{"content", nlohmann::json(msg.content)},
|
||||
{"room_id", room_id}};
|
||||
|
||||
try {
|
||||
mtx::events::EncryptedEvent<mtx::events::msg::Encrypted> event;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue