Try not setting videoRecording mode for round messages

This commit is contained in:
Ilya Laktyushin 2024-02-18 14:37:42 -04:00
parent f4e351ab2f
commit b2efd29b52

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
} }