mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
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:
parent
63cf54ea4c
commit
fce209695a
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user