We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cead902 commit 94716fdCopy full SHA for 94716fd
1 file changed
crates/matrix-sdk/src/event_cache/caches/thread/pagination.rs
@@ -114,7 +114,8 @@ impl PaginatedCache for ThreadEventCacheWrapper {
114
115
let prev_first_chunk = state.thread_linked_chunk().first_chunk();
116
117
- // The first chunk is not a gap, we can load its previous chunk.
+ // If we are here, it means all gaps have been resolved (see the `if` block
118
+ // above). So the first chunk is not a gap, we can load its previous chunk.
119
let linked_chunk_id = LinkedChunkId::Thread(&state.room_id, &state.thread_id);
120
let new_first_chunk = match state
121
.store
0 commit comments