diff --git a/crates/matrix-sdk-indexeddb/src/state_store.rs b/crates/matrix-sdk-indexeddb/src/state_store.rs index 745ceb971..1ad3ad3a0 100644 --- a/crates/matrix-sdk-indexeddb/src/state_store.rs +++ b/crates/matrix-sdk-indexeddb/src/state_store.rs @@ -616,7 +616,7 @@ impl IndexeddbStore { TimelineMetadata { start: timeline.start.clone(), end: timeline.end.clone(), - start_position: usize::MAX / 2, + start_position: usize::MAX / 2 + 1, end_position: usize::MAX / 2, } }; diff --git a/crates/matrix-sdk-sled/src/state_store.rs b/crates/matrix-sdk-sled/src/state_store.rs index 536b6a573..098e04d71 100644 --- a/crates/matrix-sdk-sled/src/state_store.rs +++ b/crates/matrix-sdk-sled/src/state_store.rs @@ -1211,7 +1211,7 @@ impl SledStore { TimelineMetadata { start: timeline.start.clone(), end: timeline.end.clone(), - start_position: usize::MAX / 2, + start_position: usize::MAX / 2 + 1, end_position: usize::MAX / 2, } };