close Call notification when onError is triggered.

How to test:
add

.doOnNext {
	throw (RuntimeException("Exception!!!!!!!!!!!!!!!!!!!!!"))
}

after
.subscribeOn(Schedulers.io())

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-11-23 12:44:03 +01:00
parent 63cf54ea4c
commit fce209695a
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -857,6 +857,10 @@ class NotificationWorker(context: Context, workerParams: WorkerParameters) : Wor
override fun onError(e: Throwable) {
Log.e(TAG, "Error in getPeersForCall", e)
if (isCallNotificationVisible) {
showMissedCallNotification()
}
removeNotification(pushMessage.timestamp.toInt())
}
override fun onComplete() {