summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-06-17 22:03:54 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-06-17 22:03:54 +0200
commit8cdfbf9391be01be8e52c7747482b336cefdfb27 (patch)
treed6948059fc684079f6d0ffaab0eac72afc65d01b /src/timeline/TimelineModel.cpp
parentRemove remaining groups code (diff)
downloadnheko-8cdfbf9391be01be8e52c7747482b336cefdfb27.tar.xz
Get rid of 'using json = nlohmann::json'
Diffstat (limited to '')
-rw-r--r--src/timeline/TimelineModel.cpp6
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;