Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Mikhail Filimonov 2024-02-19 14:08:34 +00:00
commit 1b8a7d5149
3 changed files with 6 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

View File

@ -817,8 +817,12 @@ public final class ManagedAudioSession: NSObject {
mode = .voiceChat mode = .voiceChat
case .videoCall: case .videoCall:
mode = .videoChat mode = .videoChat
case .record(_, true, _): case let .record(_, video, withOthers):
mode = .videoRecording if video && !withOthers {
mode = .videoRecording
} else {
mode = .default
}
default: default:
mode = .default mode = .default
} }