mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix mute behavior
This commit is contained in:
parent
8549684667
commit
ae40d322ca
@ -864,9 +864,23 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
||||
|
||||
if participant.peer.id == strongSelf.accountContext.account.peerId {
|
||||
if let muteState = participant.muteState {
|
||||
if muteState.canUnmute {
|
||||
switch strongSelf.isMutedValue {
|
||||
case let .muted(isPushToTalkActive):
|
||||
if !isPushToTalkActive {
|
||||
strongSelf.callContext?.setIsMuted(true)
|
||||
}
|
||||
case .unmuted:
|
||||
strongSelf.isMutedValue = .muted(isPushToTalkActive: false)
|
||||
strongSelf.callContext?.setIsMuted(true)
|
||||
}
|
||||
} else {
|
||||
strongSelf.isMutedValue = .muted(isPushToTalkActive: false)
|
||||
strongSelf.callContext?.setIsMuted(true)
|
||||
}
|
||||
strongSelf.stateValue.muteState = muteState
|
||||
strongSelf.callContext?.setIsMuted(true)
|
||||
} else if let currentMuteState = strongSelf.stateValue.muteState, !currentMuteState.canUnmute {
|
||||
strongSelf.isMutedValue = .muted(isPushToTalkActive: false)
|
||||
strongSelf.stateValue.muteState = GroupCallParticipantsContext.Participant.MuteState(canUnmute: true)
|
||||
strongSelf.callContext?.setIsMuted(true)
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 7c6b9e7e74fd3f7197df7632d3f8170de1cb23f5
|
||||
Subproject commit 738dea0e5042e6d43b26f5425bcc07eafda3437f
|
Loading…
x
Reference in New Issue
Block a user