aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO3
-rw-r--r--src/plugins/Matrix.cpp6
2 files changed, 5 insertions, 4 deletions
diff --git a/TODO b/TODO
index cabcb2e..448691d 100644
--- a/TODO
+++ b/TODO
@@ -135,4 +135,5 @@ Pinned messages authors doesn't seem to be updated when fetching users, if the p
Improve /sync by not removing cached data on initial sync, and also always append data to sync file instead of overwriting sync file on "initial sync". Also cache "since", but take into consideration that not all messages are fetched on the initial sync,
then add a gap between old messages from before sync and after sync so we can fetch the messages between the old messages and new messages and remove the gap when the fetched messages contains any of the old messages.
Fetching of previous messages should also be saved in the /sync file and messages fetched with get_message_by_id, which would cache embedded items and pinned messages; also cache users.
-If manga page fails to download then show "failed to download image" as text and bind F5 to refresh (retry download). \ No newline at end of file
+If manga page fails to download then show "failed to download image" as text and bind F5 to refresh (retry download).
+Use <img src to add custom emojis, and add setting for adding/removing custom emoji. \ No newline at end of file
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