Merge pull request #3457 from nextcloud/bugfix/3456/endCallNotificationOnException

close Call notification when onError is triggered.
This commit is contained in:
Marcel Hibbe 2023-11-23 13:13:47 +01:00 committed by GitHub
commit 074fc301d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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() {