Merge commit '18f5f3d0d3beb4f3fabe2ebf5575104d5b7cc749'

This commit is contained in:
Ali
2021-03-14 21:25:14 +04:00
47 changed files with 4874 additions and 4444 deletions

View File

@@ -250,7 +250,7 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
public var participantCount: Int
public var topParticipants: [GroupCallParticipantsContext.Participant]
public var activeSpeakers: Set<PeerId>
public init(
participantCount: Int,
topParticipants: [GroupCallParticipantsContext.Participant],
@@ -352,7 +352,7 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
private var initialCall: CachedChannelData.ActiveCall?
public let internalId: CallSessionInternalId
public let peerId: PeerId
private let invite: String?
private var invite: String?
private var joinAsPeerId: PeerId
private var ignorePreviousJoinAsPeerId: (PeerId, UInt32)?
@@ -1719,6 +1719,11 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
}
}
public func reconnect(with invite: String) {
self.invite = invite
self.requestCall(movingFromBroadcastToRtc: false)
}
public func reconnect(as peerId: PeerId) {
if peerId == self.joinAsPeerId {
return