From 62be36f49ccccf084f62e8349454bce51fa90f4b Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Sun, 22 Oct 2023 20:34:47 +0200 Subject: [PATCH] TimelineWidget::setRoom(): reset indexToMaybeRead To avoid spurious attempts to mark something as read based on indexToMaybeRead left over from the previous room. --- client/timelinewidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/timelinewidget.cpp b/client/timelinewidget.cpp index 68e7aecd..af49d556 100644 --- a/client/timelinewidget.cpp +++ b/client/timelinewidget.cpp @@ -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