From 15e437c22f144d8c42d9690ccfdaaaccf750ea3c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 16 Nov 2022 02:52:45 +0100 Subject: pp --- src/plugins/Matrix.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/Matrix.cpp') diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 186be72..973571e 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -27,6 +27,8 @@ // Remove older messages (outside screen) to save memory. Reload them when the selected body item is the top/bottom one. // TODO: Custom account data should be in im.qm.*, not qm.* +constexpr int64_t timestamp_provisional_event = 16755030000LL * 1000LL; + namespace QuickMedia { static const mgl::vec2i thumbnail_max_size(600, 337); static const mgl::vec2i custom_emoji_max_size(32, 32); @@ -2389,7 +2391,7 @@ namespace QuickMedia { if(!timestamp_json.IsInt64()) continue; - if(timestamp_json.GetInt64() > room_data->read_marker_event_timestamp) + if(timestamp_json.GetInt64() != timestamp_provisional_event && timestamp_json.GetInt64() > room_data->read_marker_event_timestamp) room_data->read_marker_event_timestamp = timestamp_json.GetInt64(); } } -- cgit v1.2.3