Page MenuHomePhorge

D61.1732558631.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D61.1732558631.diff

diff --git a/src/client/actions/auth.cpp b/src/client/actions/auth.cpp
--- a/src/client/actions/auth.cpp
+++ b/src/client/actions/auth.cpp
@@ -38,7 +38,8 @@
}
kzo.client.dbg() << "Job success" << std::endl;
- const json &j = r.jsonBody().get();
+ auto jw = r.jsonBody();
+ auto const &j = jw.get();
// TODO: replace this with r.wellKnown()
std::string serverUrl = j.contains("well_known")
? j.at("well_known").at("m.homeserver").at("base_url").get<std::string>()
diff --git a/src/client/room/room-model.cpp b/src/client/room/room-model.cpp
--- a/src/client/room/room-model.cpp
+++ b/src/client/room/room-model.cpp
@@ -165,7 +165,8 @@
// remove all local echoes that are received
for (const auto &e : a.events) {
- const auto &json = e.originalJson().get();
+ auto jw = e.originalJson();
+ const auto &json = jw.get();
if (json.contains("unsigned")
&& json["unsigned"].contains("transaction_id")
&& json["unsigned"]["transaction_id"].is_string()) {

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 10:17 AM (17 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39866
Default Alt Text
D61.1732558631.diff (1 KB)

Event Timeline