mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Prevent other accounts message notification header to be displayed when a message is received on the default account
This commit is contained in:
parent
5ebb4ee6ac
commit
92ec1940e5
1 changed files with 4 additions and 1 deletions
|
|
@ -169,7 +169,10 @@ class MainViewModel @UiThread constructor() : ViewModel() {
|
|||
messages: Array<out ChatMessage>
|
||||
) {
|
||||
Log.i("$TAG Message(s) received, updating notifications count if needed")
|
||||
computeNonDefaultAccountNotificationsCount()
|
||||
val account = LinphoneUtils.getAccountForAddress(chatRoom.localAddress)
|
||||
if (account != null && account != core.defaultAccount) {
|
||||
computeNonDefaultAccountNotificationsCount()
|
||||
}
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue