diff --git a/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift b/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift index 47570fd16e..065d58d1d0 100644 --- a/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift +++ b/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift @@ -837,6 +837,7 @@ public final class PresentationGroupCallImpl: PresentationGroupCall { jsonParams: nil, joinTimestamp: strongSelf.temporaryJoinTimestamp, raiseHandRating: nil, + hasRaiseHand: false, activityTimestamp: nil, activityRank: nil, muteState: GroupCallParticipantsContext.Participant.MuteState(canUnmute: true, mutedByYou: false), @@ -1240,6 +1241,7 @@ public final class PresentationGroupCallImpl: PresentationGroupCall { jsonParams: nil, joinTimestamp: strongSelf.temporaryJoinTimestamp, raiseHandRating: nil, + hasRaiseHand: false, activityTimestamp: nil, activityRank: nil, muteState: GroupCallParticipantsContext.Participant.MuteState(canUnmute: true, mutedByYou: false), @@ -1840,7 +1842,7 @@ public final class PresentationGroupCallImpl: PresentationGroupCall { updatedInvitedPeers.insert(peerId, at: 0) self.invitedPeersValue = updatedInvitedPeers - let _ = inviteToGroupCall(account: self.account, callId: callInfo.id, accessHash: callInfo.accessHash, peerId: peerId).start() + let _ = inviteToGroupCall(account: self.account, callId: callInfo.id, accessHash: callInfo.accessHash, peerId: peerId, canUnmute: false).start() return true } diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift index ecada80e56..4558279382 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift @@ -782,7 +782,7 @@ public final class VoiceChatController: ViewController { let displayAsPeers: Signal<[FoundPeer], NoError> = currentAccountPeer |> then( - combineLatest(currentAccountPeer, groupCallDisplayAsAvailablePeers(network: context.account.network, postbox: context.account.postbox)) + combineLatest(currentAccountPeer, groupCallDisplayAsAvailablePeers(network: context.account.network, postbox: context.account.postbox, peerId: call.peerId)) |> map { currentAccountPeer, availablePeers -> [FoundPeer] in var result = currentAccountPeer result.append(contentsOf: availablePeers) diff --git a/submodules/TelegramCore/Sources/GroupCalls.swift b/submodules/TelegramCore/Sources/GroupCalls.swift index 81f40ae40e..fdd2e4c9e0 100644 --- a/submodules/TelegramCore/Sources/GroupCalls.swift +++ b/submodules/TelegramCore/Sources/GroupCalls.swift @@ -1802,7 +1802,6 @@ public func editGroupCallTitle(account: Account, callId: Int64, accessHash: Int6 } public func groupCallDisplayAsAvailablePeers(network: Network, postbox: Postbox, peerId: PeerId) -> Signal<[FoundPeer], NoError> { - return postbox.transaction { transaction -> Api.InputPeer? in return transaction.getPeer(peerId).flatMap(apiInputPeer) } |> mapToSignal { inputPeer in diff --git a/submodules/TelegramUI/Sources/PeerInfo/PeerInfoScreen.swift b/submodules/TelegramUI/Sources/PeerInfo/PeerInfoScreen.swift index c2e85a2ea9..34ecaa99f7 100644 --- a/submodules/TelegramUI/Sources/PeerInfo/PeerInfoScreen.swift +++ b/submodules/TelegramUI/Sources/PeerInfo/PeerInfoScreen.swift @@ -2780,7 +2780,7 @@ private final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewD } if [Namespaces.Peer.CloudGroup, Namespaces.Peer.CloudChannel].contains(peerId.namespace) { - self.displayAsPeersPromise.set(cachedGroupCallDisplayAsAvailablePeers(account: context.account)) + self.displayAsPeersPromise.set(cachedGroupCallDisplayAsAvailablePeers(account: context.account, peerId: peerId)) } }