Skip to content

Commit

Permalink
doc(ui): Add more documentation for AllRemoteEvents.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Dec 4, 2024
1 parent 7a6b2ce commit b7c83d3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,10 @@ impl AllRemoteEvents {
}
}

/// Notify that a timeline item has been inserted at
/// `new_timeline_item_index`. If `event_index` is `Some(_)`, it means the
/// remote event at `event_index` must be mapped to
/// `new_timeline_item_index`.
fn timeline_item_has_been_inserted_at(
&mut self,
new_timeline_item_index: usize,
Expand All @@ -443,6 +447,9 @@ impl AllRemoteEvents {
}
}

/// Notify that a timeline item has been removed at
/// `new_timeline_item_index`. If `event_index` is `Some(_)`, it means the
/// remote event at `event_index` must be unmapped.
fn timeline_item_has_been_removed_at(&mut self, timeline_item_index_to_remove: usize) {
for event_meta in self.0.iter_mut() {
let mut remove_timeline_item_index = false;
Expand Down

0 comments on commit b7c83d3

Please sign in to comment.