Commit 92ec1940 authored by Sylvain Berfini's avatar Sylvain Berfini :cow:
Browse files

Prevent other accounts message notification header to be displayed when a...

Prevent other accounts message notification header to be displayed when a message is received on the default account
Showing with 4 additions and 1 deletion
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment