mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-01 20:22:03 +00:00
Avoid to set RecordingStartedState twice
RecordingStartedState is set when the signaling message is received. There is no need to set this by CallStartRecordingObserver. Otherwise the toast "The call is being recorded" would have been shown twice when starting the recording. Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
39882e6325
commit
97298c8169
@ -119,9 +119,7 @@ class CallRecordingViewModel @Inject constructor(private val repository: CallRec
|
||||
}
|
||||
|
||||
override fun onNext(startCallRecordingModel: StartCallRecordingModel) {
|
||||
if (startCallRecordingModel.success) {
|
||||
_viewState.value = RecordingStartedState
|
||||
}
|
||||
// unused atm. RecordingStartedState is set via setRecordingState which is triggered by signaling message.
|
||||
}
|
||||
|
||||
override fun onError(e: Throwable) {
|
||||
|
Loading…
Reference in New Issue
Block a user