aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-17 13:09:55 +0100
committerdec05eba <dec05eba@protonmail.com>2021-03-17 13:09:55 +0100
commit69db4f3116fcbabae354d6c40ebced80de7a4884 (patch)
treeff62161e79ed14790ee37d030c6b8bbed0f4e908 /src
parenta3d12de5f6adf7882b885fb1fcbc22c6a2763242 (diff)
Fuck construct, use faster way to fetch message by id
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Matrix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index aa6de40..046fe91 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -3005,7 +3005,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 1
+#if 0
rapidjson::Document request_data(rapidjson::kObjectType);
request_data.AddMember("lazy_load_members", true, request_data.GetAllocator());
@@ -3084,7 +3084,7 @@ namespace QuickMedia {
events_add_user_info(state_json, room);
#endif
//events_set_room_name(state_json, room);
-#if 1
+#if 0
const rapidjson::Value &event_json = GetMember(json_root, "event");
std::shared_ptr<Message> new_message = parse_message_event(event_json, room);
#else