Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpoon committed Oct 4, 2024
1 parent 5657931 commit bb92afb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/home/room_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,9 +967,9 @@ impl RoomScreen{
if first_index > *index {
cx.stop_timer(self.fully_read_timer);
self.fully_read_timer = cx.start_interval(5.0);
let index_to_send_read = first_index + portal_list.visible_items();
if let Some(event_id) = tl_state.items.get(index_to_send_read)
.and_then(|f|f.as_event()).and_then(|f|f.event_id()) {
if let Some(event_id) = tl_state.items.get(first_index + portal_list.visible_items())
.and_then(|f| f.as_event() )
.and_then(|f| f.event_id() ) {
submit_async_request(MatrixRequest::ReadReceipt { room_id: room_id.clone(), event_id: event_id.to_owned() });
tl_state.last_displayed_event = Some(event_id.to_owned());
}
Expand Down

0 comments on commit bb92afb

Please sign in to comment.