mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fixes #2707 - Prevent the app from locking while recording a voice message
This commit is contained in:
committed by
Stefan Ceriu
parent
effe3b6a9b
commit
1e810f91ff
@@ -50,7 +50,12 @@ class RoomScreenInteractionHandler {
|
||||
actionsSubject.eraseToAnyPublisher()
|
||||
}
|
||||
|
||||
private var voiceMessageRecorderObserver: AnyCancellable?
|
||||
private var voiceMessageRecorderObserver: AnyCancellable? {
|
||||
didSet {
|
||||
appMediator.setIdleTimerDisabled(voiceMessageRecorderObserver != nil)
|
||||
}
|
||||
}
|
||||
|
||||
private var canCurrentUserRedactOthers = false
|
||||
private var canCurrentUserRedactSelf = false
|
||||
private var resumeVoiceMessagePlaybackAfterScrubbing = false
|
||||
@@ -405,6 +410,7 @@ class RoomScreenInteractionHandler {
|
||||
|
||||
func stopRecordingVoiceMessage() async {
|
||||
await voiceMessageRecorder.stopRecording()
|
||||
voiceMessageRecorderObserver = nil
|
||||
}
|
||||
|
||||
func cancelRecordingVoiceMessage() async {
|
||||
|
||||
Reference in New Issue
Block a user