Skip to content

Commit 17f0d96

Browse files
authored
Don't scroll up if unread index not found, it happens
1 parent b4511cf commit 17f0d96

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

qml/pages/MessageListView.qml

-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ SilicaListView {
9090
var unreadIndex = timestampToIndex(channel.lastRead);
9191
if (unreadIndex > -1) {
9292
listView.positionViewAtIndex(unreadIndex, ListView.Center)
93-
} else {
94-
listView.positionViewAtBeginning()
9593
}
9694
inputEnabled = true
9795
loading = false

0 commit comments

Comments
 (0)