mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-07 14:53:35 +00:00
remove duplicate
This commit is contained in:
parent
bae17a7621
commit
9d0be9ed71
@ -622,7 +622,6 @@ public func joinGroupCall(account: Account, peerId: PeerId, joinAs: PeerId?, cal
|
|||||||
guard let peer = transaction.getPeer(peerId) else {
|
guard let peer = transaction.getPeer(peerId) else {
|
||||||
continue loop
|
continue loop
|
||||||
}
|
}
|
||||||
let videoJoined = (flags & (1 << 15)) != 0
|
|
||||||
let muted = (flags & (1 << 0)) != 0
|
let muted = (flags & (1 << 0)) != 0
|
||||||
let mutedByYou = (flags & (1 << 9)) != 0
|
let mutedByYou = (flags & (1 << 9)) != 0
|
||||||
var muteState: GroupCallParticipantsContext.Participant.MuteState?
|
var muteState: GroupCallParticipantsContext.Participant.MuteState?
|
||||||
@ -646,7 +645,6 @@ public func joinGroupCall(account: Account, peerId: PeerId, joinAs: PeerId?, cal
|
|||||||
videoDescription: videoDescription,
|
videoDescription: videoDescription,
|
||||||
presentationDescription: presentationDescription,
|
presentationDescription: presentationDescription,
|
||||||
joinTimestamp: date,
|
joinTimestamp: date,
|
||||||
videoJoined: videoJoined,
|
|
||||||
raiseHandRating: raiseHandRating,
|
raiseHandRating: raiseHandRating,
|
||||||
hasRaiseHand: raiseHandRating != nil,
|
hasRaiseHand: raiseHandRating != nil,
|
||||||
activityTimestamp: activeDate.flatMap(Double.init),
|
activityTimestamp: activeDate.flatMap(Double.init),
|
||||||
@ -865,7 +863,6 @@ public final class GroupCallParticipantsContext {
|
|||||||
public var videoDescription: VideoDescription?
|
public var videoDescription: VideoDescription?
|
||||||
public var presentationDescription: VideoDescription?
|
public var presentationDescription: VideoDescription?
|
||||||
public var joinTimestamp: Int32
|
public var joinTimestamp: Int32
|
||||||
public var videoJoined: Bool
|
|
||||||
public var raiseHandRating: Int64?
|
public var raiseHandRating: Int64?
|
||||||
public var hasRaiseHand: Bool
|
public var hasRaiseHand: Bool
|
||||||
public var activityTimestamp: Double?
|
public var activityTimestamp: Double?
|
||||||
@ -881,7 +878,6 @@ public final class GroupCallParticipantsContext {
|
|||||||
videoDescription: VideoDescription?,
|
videoDescription: VideoDescription?,
|
||||||
presentationDescription: VideoDescription?,
|
presentationDescription: VideoDescription?,
|
||||||
joinTimestamp: Int32,
|
joinTimestamp: Int32,
|
||||||
videoJoined: Bool,
|
|
||||||
raiseHandRating: Int64?,
|
raiseHandRating: Int64?,
|
||||||
hasRaiseHand: Bool,
|
hasRaiseHand: Bool,
|
||||||
activityTimestamp: Double?,
|
activityTimestamp: Double?,
|
||||||
@ -896,7 +892,6 @@ public final class GroupCallParticipantsContext {
|
|||||||
self.videoDescription = videoDescription
|
self.videoDescription = videoDescription
|
||||||
self.presentationDescription = presentationDescription
|
self.presentationDescription = presentationDescription
|
||||||
self.joinTimestamp = joinTimestamp
|
self.joinTimestamp = joinTimestamp
|
||||||
self.videoJoined = videoJoined
|
|
||||||
self.raiseHandRating = raiseHandRating
|
self.raiseHandRating = raiseHandRating
|
||||||
self.hasRaiseHand = hasRaiseHand
|
self.hasRaiseHand = hasRaiseHand
|
||||||
self.activityTimestamp = activityTimestamp
|
self.activityTimestamp = activityTimestamp
|
||||||
@ -1133,7 +1128,6 @@ public final class GroupCallParticipantsContext {
|
|||||||
public var videoDescription: GroupCallParticipantsContext.Participant.VideoDescription?
|
public var videoDescription: GroupCallParticipantsContext.Participant.VideoDescription?
|
||||||
public var presentationDescription: GroupCallParticipantsContext.Participant.VideoDescription?
|
public var presentationDescription: GroupCallParticipantsContext.Participant.VideoDescription?
|
||||||
public var joinTimestamp: Int32
|
public var joinTimestamp: Int32
|
||||||
public var videoJoined: Bool
|
|
||||||
public var activityTimestamp: Double?
|
public var activityTimestamp: Double?
|
||||||
public var raiseHandRating: Int64?
|
public var raiseHandRating: Int64?
|
||||||
public var muteState: Participant.MuteState?
|
public var muteState: Participant.MuteState?
|
||||||
@ -1149,7 +1143,6 @@ public final class GroupCallParticipantsContext {
|
|||||||
videoDescription: GroupCallParticipantsContext.Participant.VideoDescription?,
|
videoDescription: GroupCallParticipantsContext.Participant.VideoDescription?,
|
||||||
presentationDescription: GroupCallParticipantsContext.Participant.VideoDescription?,
|
presentationDescription: GroupCallParticipantsContext.Participant.VideoDescription?,
|
||||||
joinTimestamp: Int32,
|
joinTimestamp: Int32,
|
||||||
videoJoined: Bool,
|
|
||||||
activityTimestamp: Double?,
|
activityTimestamp: Double?,
|
||||||
raiseHandRating: Int64?,
|
raiseHandRating: Int64?,
|
||||||
muteState: Participant.MuteState?,
|
muteState: Participant.MuteState?,
|
||||||
@ -1164,7 +1157,6 @@ public final class GroupCallParticipantsContext {
|
|||||||
self.videoDescription = videoDescription
|
self.videoDescription = videoDescription
|
||||||
self.presentationDescription = presentationDescription
|
self.presentationDescription = presentationDescription
|
||||||
self.joinTimestamp = joinTimestamp
|
self.joinTimestamp = joinTimestamp
|
||||||
self.videoJoined = videoJoined
|
|
||||||
self.activityTimestamp = activityTimestamp
|
self.activityTimestamp = activityTimestamp
|
||||||
self.raiseHandRating = raiseHandRating
|
self.raiseHandRating = raiseHandRating
|
||||||
self.muteState = muteState
|
self.muteState = muteState
|
||||||
@ -1707,7 +1699,6 @@ public final class GroupCallParticipantsContext {
|
|||||||
videoDescription: participantUpdate.videoDescription,
|
videoDescription: participantUpdate.videoDescription,
|
||||||
presentationDescription: participantUpdate.presentationDescription,
|
presentationDescription: participantUpdate.presentationDescription,
|
||||||
joinTimestamp: previousJoinTimestamp ?? participantUpdate.joinTimestamp,
|
joinTimestamp: previousJoinTimestamp ?? participantUpdate.joinTimestamp,
|
||||||
videoJoined: participantUpdate.videoJoined,
|
|
||||||
raiseHandRating: participantUpdate.raiseHandRating,
|
raiseHandRating: participantUpdate.raiseHandRating,
|
||||||
hasRaiseHand: participantUpdate.raiseHandRating != nil,
|
hasRaiseHand: participantUpdate.raiseHandRating != nil,
|
||||||
activityTimestamp: activityTimestamp,
|
activityTimestamp: activityTimestamp,
|
||||||
@ -2075,7 +2066,6 @@ extension GroupCallParticipantsContext.Update.StateUpdate.ParticipantUpdate {
|
|||||||
let justJoined = (flags & (1 << 4)) != 0
|
let justJoined = (flags & (1 << 4)) != 0
|
||||||
let joinedVideo = (flags & (1 << 15)) != 0
|
let joinedVideo = (flags & (1 << 15)) != 0
|
||||||
let isMin = (flags & (1 << 8)) != 0
|
let isMin = (flags & (1 << 8)) != 0
|
||||||
let videoJoined = (flags & (1 << 15)) != 0
|
|
||||||
|
|
||||||
let participationStatusChange: GroupCallParticipantsContext.Update.StateUpdate.ParticipantUpdate.ParticipationStatusChange
|
let participationStatusChange: GroupCallParticipantsContext.Update.StateUpdate.ParticipantUpdate.ParticipationStatusChange
|
||||||
if isRemoved {
|
if isRemoved {
|
||||||
@ -2098,7 +2088,6 @@ extension GroupCallParticipantsContext.Update.StateUpdate.ParticipantUpdate {
|
|||||||
videoDescription: videoDescription,
|
videoDescription: videoDescription,
|
||||||
presentationDescription: presentationDescription,
|
presentationDescription: presentationDescription,
|
||||||
joinTimestamp: date,
|
joinTimestamp: date,
|
||||||
videoJoined: videoJoined,
|
|
||||||
activityTimestamp: activeDate.flatMap(Double.init),
|
activityTimestamp: activeDate.flatMap(Double.init),
|
||||||
raiseHandRating: raiseHandRating,
|
raiseHandRating: raiseHandRating,
|
||||||
muteState: muteState,
|
muteState: muteState,
|
||||||
@ -2469,7 +2458,6 @@ extension GroupCallParticipantsContext.Participant {
|
|||||||
muteState = GroupCallParticipantsContext.Participant.MuteState(canUnmute: false, mutedByYou: mutedByYou)
|
muteState = GroupCallParticipantsContext.Participant.MuteState(canUnmute: false, mutedByYou: mutedByYou)
|
||||||
}
|
}
|
||||||
|
|
||||||
let videoJoined = (flags & (1 << 15)) != 0
|
|
||||||
|
|
||||||
var videoDescription = video.flatMap(GroupCallParticipantsContext.Participant.VideoDescription.init)
|
var videoDescription = video.flatMap(GroupCallParticipantsContext.Participant.VideoDescription.init)
|
||||||
var presentationDescription = presentation.flatMap(GroupCallParticipantsContext.Participant.VideoDescription.init)
|
var presentationDescription = presentation.flatMap(GroupCallParticipantsContext.Participant.VideoDescription.init)
|
||||||
@ -2485,7 +2473,6 @@ extension GroupCallParticipantsContext.Participant {
|
|||||||
videoDescription: videoDescription,
|
videoDescription: videoDescription,
|
||||||
presentationDescription: presentationDescription,
|
presentationDescription: presentationDescription,
|
||||||
joinTimestamp: date,
|
joinTimestamp: date,
|
||||||
videoJoined: videoJoined,
|
|
||||||
raiseHandRating: raiseHandRating,
|
raiseHandRating: raiseHandRating,
|
||||||
hasRaiseHand: raiseHandRating != nil,
|
hasRaiseHand: raiseHandRating != nil,
|
||||||
activityTimestamp: activeDate.flatMap(Double.init),
|
activityTimestamp: activeDate.flatMap(Double.init),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user