nextcloud/talk-android

phone keeps ringing when joined on different device

mahibi opened this issue · 1 comments

from @ShGKme :
I got a notification about the call on my Android, but joined the call from desktop.
All the time (1h) my phone in my pocket was on with the call notification, with the screen on. And it continued after the call.

code to check:

.repeatWhen { completed ->
completed.zipWith(Observable.range(TIMER_START, TIMER_COUNT)) { _, i -> i }
.flatMap { Observable.timer(TIMER_DELAY, TimeUnit.SECONDS) }
.takeWhile { isCallNotificationVisible && hasParticipantsInCall && !inCallOnDifferentDevice }
}

good idea from @SystemKeeper :
Is the repeat still triggered when you end up in the onError case?