aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-16 02:52:45 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-16 02:52:45 +0100
commit15e437c22f144d8c42d9690ccfdaaaccf750ea3c (patch)
treeff4f4115e1bf12faa2ced28b3e3dd739783be627 /src/plugins
parent82eea06a77a2c38d33cdabc0a1e74c0fae9b197e (diff)
pp
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Matrix.cpp4
1 files changed, 3 insertions, 1 deletions
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();
}
}