From aade817755cd19dfa084540e0165456cf5c276b8 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Tue, 8 Oct 2024 15:53:28 +0200 Subject: [PATCH] fix #LINQT-1328 reset missed calls if already in call history --- Linphone/view/Control/Container/VerticalTabBar.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Linphone/view/Control/Container/VerticalTabBar.qml b/Linphone/view/Control/Container/VerticalTabBar.qml index 8ba7c91c2..265341fa6 100644 --- a/Linphone/view/Control/Container/VerticalTabBar.qml +++ b/Linphone/view/Control/Container/VerticalTabBar.qml @@ -17,6 +17,14 @@ Control.TabBar { onDefaultAccountChanged: { if (defaultAccount) defaultAccount.core?.lRefreshNotifications() } + Connections { + enabled: defaultAccount + target: defaultAccount.core + onUnreadCallNotificationsChanged: { + console.log("unread changed", currentIndex) + if (currentIndex === 0) defaultAccount?.core.lResetMissedCalls() + } + } component UnreadNotification: Rectangle { id: unreadNotifications