Disable unread mention counter *for now*

There's currently no way to make it go down, read room markers need to
be implemented first.
This commit is contained in:
miruka 2020-03-23 00:50:58 -04:00
parent 0682990666
commit 710668da5d

View File

@ -34,23 +34,23 @@ HTileDelegate {
title.text: model.display_name || qsTr("Empty room") title.text: model.display_name || qsTr("Empty room")
additionalInfo.children: [ additionalInfo.children: [
HLabel { // HLabel {
text: model.mentions // text: model.mentions
font.pixelSize: theme.fontSize.small // font.pixelSize: theme.fontSize.small
verticalAlignment: Qt.AlignVCenter // verticalAlignment: Qt.AlignVCenter
leftPadding: theme.spacing / 4 // leftPadding: theme.spacing / 4
rightPadding: leftPadding // rightPadding: leftPadding
scale: model.mentions === 0 ? 0 : 1 // scale: model.mentions === 0 ? 0 : 1
visible: scale > 0 // visible: scale > 0
background: Rectangle { // background: Rectangle {
color: theme.colors.alertBackground // color: theme.colors.alertBackground
radius: theme.radius / 4 // radius: theme.radius / 4
} // }
Behavior on scale { HNumberAnimation {} } // Behavior on scale { HNumberAnimation {} }
}, // },
HIcon { HIcon {
svgName: "invite-received" svgName: "invite-received"