aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}
}