mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Stories
This commit is contained in:
parent
6b330351e1
commit
99430812c1
6 changed files with 71 additions and 60 deletions
|
|
@ -530,7 +530,7 @@ public final class OngoingGroupCallContext {
|
|||
|
||||
#if os(iOS)
|
||||
if sharedAudioDevice == nil && !isStream {
|
||||
self.audioDevice = OngoingCallContext.AudioDevice.create(enableSystemMute: false)
|
||||
self.audioDevice = OngoingCallContext.AudioDevice.create(enableSystemMute: false, enableMicrophone: true)
|
||||
} else {
|
||||
self.audioDevice = sharedAudioDevice
|
||||
}
|
||||
|
|
|
|||
|
|
@ -832,8 +832,8 @@ public final class OngoingCallContext {
|
|||
public final class AudioDevice {
|
||||
let impl: SharedCallAudioDevice
|
||||
|
||||
public static func create(enableSystemMute: Bool) -> AudioDevice? {
|
||||
return AudioDevice(impl: SharedCallAudioDevice(disableRecording: false, enableSystemMute: enableSystemMute))
|
||||
public static func create(enableSystemMute: Bool, enableMicrophone: Bool) -> AudioDevice? {
|
||||
return AudioDevice(impl: SharedCallAudioDevice(disableRecording: !enableMicrophone, enableSystemMute: enableSystemMute))
|
||||
}
|
||||
|
||||
private init(impl: SharedCallAudioDevice) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue