Try to prevent foreground service notification to stay visible after call ends

This commit is contained in:
Sylvain Berfini 2022-05-27 16:05:23 +02:00
parent 8d5d344c2c
commit 61bfb1fcff

View file

@ -190,6 +190,11 @@ class NotificationsManager(private val context: Context) {
}
}
}
override fun onLastCallEnded(core: Core) {
Log.i("[Notifications Manager] Last call ended, make sure foreground service is stopped and notification removed")
stopCallForeground()
}
}
val chatListener: ChatMessageListener = object : ChatMessageListenerStub() {