Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85827721
D61.1793339448.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D61.1793339448.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 29, 10:50 PM (8 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1800681
Default Alt Text
D61.1793339448.diff (1 KB)
Attached To
Mode
D61: Fix possibly dangling reference to a temporary
Attached
Detach File
Event Timeline