fix #LINQT-1328 reset missed calls if already in call history

This commit is contained in:
Gaelle Braud 2024-10-08 15:53:28 +02:00
parent 72d2096ae7
commit aade817755

View file

@ -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