stop assigning undefined to bool in TimelineView and MessageDelegate

This commit is contained in:
Andreas Gattringer
2024-07-15 15:35:01 +02:00
parent a4a411cf1f
commit 20f9a86ad9
2 changed files with 2 additions and 2 deletions

View File

@@ -190,7 +190,7 @@ QQC2.ScrollView {
implicitHeight: Kirigami.Units.gridUnit * 2
z: 2
visible: root.currentRoom && root.currentRoom.hasUnreadMessages
visible: root.currentRoom?.hasUnreadMessages || false
text: root.currentRoom.readMarkerLoaded ? i18n("Jump to first unread message") : i18n("Jump to oldest loaded message")
action: Kirigami.Action {

View File

@@ -245,7 +245,7 @@ TimelineDelegate {
topMargin: Kirigami.Units.smallSpacing
}
visible: root.contentModel?.showAuthor && Config.showAvatarInTimeline && (Config.compactLayout || !_private.showUserMessageOnRight)
visible: root.contentModel?.showAuthor || false && Config.showAvatarInTimeline && (Config.compactLayout || !_private.showUserMessageOnRight)
name: root.author.displayName
source: root.author.avatarUrl
color: root.author.color