Skip to content

Commit 94716fd

Browse files
committed
chore(sdk): Improve an inline comment.
1 parent cead902 commit 94716fd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/matrix-sdk/src/event_cache/caches/thread/pagination.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ impl PaginatedCache for ThreadEventCacheWrapper {
114114

115115
let prev_first_chunk = state.thread_linked_chunk().first_chunk();
116116

117-
// The first chunk is not a gap, we can load its previous chunk.
117+
// 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.
118119
let linked_chunk_id = LinkedChunkId::Thread(&state.room_id, &state.thread_id);
119120
let new_first_chunk = match state
120121
.store

0 commit comments

Comments
 (0)