Reenable reuseItems for the message view

If this is still broken, we will need to disable it again.
pull/728/head
Nicolas Werner 3 years ago
parent c7545cb455
commit 30aedd36a1
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 6
      resources/qml/MessageView.qml
  2. 4
      resources/qml/delegates/Encrypted.qml
  3. 2
      resources/qml/delegates/MessageDelegate.qml

@ -25,8 +25,8 @@ ScrollView {
model: room
// reuseItems still has a few bugs, see https://bugreports.qt.io/browse/QTBUG-95105 https://bugreports.qt.io/browse/QTBUG-95107
//onModelChanged: if (room) room.sendReset()
//reuseItems: true
onModelChanged: if (room) room.sendReset()
reuseItems: true
boundsBehavior: Flickable.StopAtBounds
pixelAligned: true
spacing: 4
@ -361,7 +361,7 @@ ScrollView {
anchors.horizontalCenter: parent ? parent.horizontalCenter : undefined
width: chat.delegateMaxWidth
height: section ? section.height + timelinerow.height : timelinerow.height
height: Math.max(section.active ? section.height + timelinerow.height : timelinerow.height, 10)
Rectangle {
id: scrollHighlight

@ -3,11 +3,11 @@
// SPDX-License-Identifier: GPL-3.0-or-later
import ".."
import QtQuick 2.15
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.2
import im.nheko 1.0
ColumnLayout {
Column {
id: r
required property int encryptionError

@ -34,7 +34,7 @@ Item {
required property int encryptionError
required property int relatedEventCacheBuster
height: chooser.child.height
height: Math.max(chooser.child.height, 20)
DelegateChooser {
id: chooser

Loading…
Cancel
Save