mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix push to talk
This commit is contained in:
parent
ed28ef6b5b
commit
4a84fae565
@ -757,17 +757,20 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
||||
self.isMutedValue = action
|
||||
self.isMutedPromise.set(self.isMutedValue)
|
||||
let isEffectivelyMuted: Bool
|
||||
let isVisuallyMuted: Bool
|
||||
switch self.isMutedValue {
|
||||
case let .muted(isPushToTalkActive):
|
||||
isEffectivelyMuted = true
|
||||
isEffectivelyMuted = !isPushToTalkActive
|
||||
isVisuallyMuted = true
|
||||
self.updateMuteState(peerId: self.accountContext.account.peerId, isMuted: true)
|
||||
case .unmuted:
|
||||
isEffectivelyMuted = false
|
||||
isVisuallyMuted = false
|
||||
self.updateMuteState(peerId: self.accountContext.account.peerId, isMuted: false)
|
||||
}
|
||||
self.callContext?.setIsMuted(isEffectivelyMuted)
|
||||
|
||||
if isEffectivelyMuted {
|
||||
if isVisuallyMuted {
|
||||
self.stateValue.muteState = GroupCallParticipantsContext.Participant.MuteState(canUnmute: true)
|
||||
} else {
|
||||
self.stateValue.muteState = nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user