From dc935e09b71b01a7ea8a01d609c057de7d0fdfd8 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 15 Jan 2026 16:14:42 -0500 Subject: [PATCH] Use countedNotifications instead of our own calculations w/ DMs This fixes an odd disconnect you can sometimes see when the notification isn't an invite or a "direct chat notification", which conflicts with what we use to control the tooltip and visibility. --- src/rooms/SpaceDrawer.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rooms/SpaceDrawer.qml b/src/rooms/SpaceDrawer.qml index 311d027ac..1d443275b 100644 --- a/src/rooms/SpaceDrawer.qml +++ b/src/rooms/SpaceDrawer.qml @@ -159,7 +159,7 @@ QQC2.Control { width: Math.max(directChatNotificationCountTextMetrics.advanceWidth + Kirigami.Units.smallSpacing * 2, height) height: Kirigami.Units.iconSizes.smallMedium - text: visible ? root.connection.directChatNotifications + root.connection.directChatInvites : "" + text: visible ? directChatButton.countedNotifications : "" visible: directChatButton.hasCountableNotifications && RoomManager.currentSpace !== "DM" color: Kirigami.Theme.textColor horizontalAlignment: Text.AlignHCenter