mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-17 04:58:41 -04:00
store: Make sure that event position in store is contiguous
This fixes the breaking gap in the timeline when reading the events from store.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user