Skip to content

Commit

Permalink
TimelineWidget::setRoom(): reset indexToMaybeRead
Browse files Browse the repository at this point in the history
To avoid spurious attempts to mark something as read based on
indexToMaybeRead left over from the previous room.
  • Loading branch information
KitsuneRal committed Oct 22, 2023
1 parent 7eac2e5 commit 62be36f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/timelinewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ void TimelineWidget::setRoom(QuaternionRoom* newRoom)
readMarkerOnScreen = false;
maybeReadTimer.stop();
indicesOnScreen.clear();
indexToMaybeRead = -1;

// Update the image provider upfront to allow image requests from
// QML bindings to MessageEventModel::roomChanged
Expand Down

0 comments on commit 62be36f

Please sign in to comment.