fix #LINQT-1328 reset missed calls if already in call history
This commit is contained in:
parent
72d2096ae7
commit
aade817755
1 changed files with 8 additions and 0 deletions
|
|
@ -17,6 +17,14 @@ Control.TabBar {
|
||||||
onDefaultAccountChanged: {
|
onDefaultAccountChanged: {
|
||||||
if (defaultAccount) defaultAccount.core?.lRefreshNotifications()
|
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 {
|
component UnreadNotification: Rectangle {
|
||||||
id: unreadNotifications
|
id: unreadNotifications
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue