Prevent call notification from not being removed when call ends if service channel is disabled & background mode is enabled

This commit is contained in:
Sylvain Berfini 2022-07-07 09:36:26 +02:00
parent 367700e33f
commit 1204275b9a

View file

@ -405,7 +405,7 @@ class NotificationsManager(private val context: Context) {
}
fun stopCallForeground() {
if (service != null && currentForegroundServiceNotificationId != SERVICE_NOTIF_ID && !corePreferences.keepServiceAlive) {
if (service != null && currentForegroundServiceNotificationId != SERVICE_NOTIF_ID) {
Log.i("[Notifications Manager] Stopping call notification [$currentForegroundServiceNotificationId] used as foreground service")
stopForegroundNotification()
}