diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-06-17 22:03:54 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-06-17 22:03:54 +0200 |
commit | 8cdfbf9391be01be8e52c7747482b336cefdfb27 (patch) | |
tree | d6948059fc684079f6d0ffaab0eac72afc65d01b /src/timeline/TimelineModel.cpp | |
parent | Remove remaining groups code (diff) | |
download | nheko-8cdfbf9391be01be8e52c7747482b336cefdfb27.tar.xz |
Get rid of 'using json = nlohmann::json'
Diffstat (limited to '')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 8e9a21db..53d2fe01 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -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; |