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
|
|
@ -241,9 +241,9 @@ EventStore::EventStore(std::string room_id, QObject *)
|
|||
|
||||
std::visit(
|
||||
[&pending_event, &original_encrypted, &session, this](auto &msg) {
|
||||
json doc = {{"type", mtx::events::to_string(msg.type)},
|
||||
{"content", json(msg.content)},
|
||||
{"room_id", room_id_}};
|
||||
nlohmann::json doc = {{"type", mtx::events::to_string(msg.type)},
|
||||
{"content", nlohmann::json(msg.content)},
|
||||
{"room_id", room_id_}};
|
||||
|
||||
auto data = olm::encrypt_group_message_with_session(
|
||||
session.session, http::client()->device_id(), doc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue