mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 14:08:44 +03:00
Merge pull request #4165 from vector-im/feature/bma/log_error
Add a log to get info when an error occurred when recording / playing voice message
This commit is contained in:
commit
9fd1cc9c8e
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,7 @@ class VoiceMessageHelper @Inject constructor(
|
|||
try {
|
||||
voiceRecorder.startRecord()
|
||||
} catch (failure: Throwable) {
|
||||
Timber.e(failure, "Unable to start recording")
|
||||
throw VoiceFailure.UnableToRecord(failure)
|
||||
}
|
||||
startRecordingAmplitudes()
|
||||
|
@ -146,6 +147,7 @@ class VoiceMessageHelper @Inject constructor(
|
|||
}
|
||||
}
|
||||
} catch (failure: Throwable) {
|
||||
Timber.e(failure, "Unable to start playback")
|
||||
throw VoiceFailure.UnableToPlay(failure)
|
||||
}
|
||||
startPlaybackTicker(id)
|
||||
|
|
Loading…
Reference in a new issue