aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-18 10:16:10 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-18 10:16:10 +0100
commit44ddab79f30bb959d363b58d8bce41bfc0892414 (patch)
treeb936bb1e42663264c48aaaf40c0948825cf88271 /src/plugins
parent310f01adafd54b10e4d1278b67e75024c0bb09e4 (diff)
Matrix: use slower /context instead of /event to workaround construct fucking shit bug where it just randomly fails
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Matrix.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 67b30f7..d8c8559 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -2700,7 +2700,7 @@ namespace QuickMedia {
auto fetched_message_it = room->fetched_messages_by_event_id.find(event_id);
if(fetched_message_it != room->fetched_messages_by_event_id.end())
return fetched_message_it->second;
-#if 0
+#if 1
rapidjson::Document request_data(rapidjson::kObjectType);
request_data.AddMember("lazy_load_members", true, request_data.GetAllocator());
@@ -2741,12 +2741,12 @@ namespace QuickMedia {
room->fetched_messages_by_event_id.insert(std::make_pair(event_id, nullptr));
return nullptr;
}
-#if 0
+#if 1
const rapidjson::Value &state_json = GetMember(json_root, "state");
events_add_user_info(state_json, room);
#endif
//events_set_room_name(state_json, room);
-#if 0
+#if 1
const rapidjson::Value &event_json = GetMember(json_root, "event");
std::shared_ptr<Message> new_message = parse_message_event(event_json, room);
#else