mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
01d50f1e0b
@ -699,7 +699,7 @@ private func binaryInsertionIndex(_ inputArr: [GroupCallParticipantsContext.Part
|
||||
}
|
||||
|
||||
public final class GroupCallParticipantsContext {
|
||||
public struct Participant: Equatable {
|
||||
public struct Participant: Equatable, CustomStringConvertible {
|
||||
public struct MuteState: Equatable {
|
||||
public var canUnmute: Bool
|
||||
public var mutedByYou: Bool
|
||||
@ -747,6 +747,10 @@ public final class GroupCallParticipantsContext {
|
||||
self.volume = volume
|
||||
self.about = about
|
||||
}
|
||||
|
||||
public var description: String {
|
||||
return "Participant(peer: \(peer.id): \(peer.debugDisplayTitle), ssrc: \(String(describing: self.ssrc))"
|
||||
}
|
||||
|
||||
public mutating func mergeActivity(from other: Participant, mergeActivityTimestamp: Bool) {
|
||||
self.activityRank = other.activityRank
|
||||
@ -1311,6 +1315,8 @@ public final class GroupCallParticipantsContext {
|
||||
self.isLoadingMore = true
|
||||
|
||||
let ssrcs = self.missingSsrcs
|
||||
|
||||
Logger.shared.log("GroupCallParticipantsContext", "will request ssrcs=\(ssrcs)")
|
||||
|
||||
self.disposable.set((getGroupCallParticipants(account: self.account, callId: self.id, accessHash: self.accessHash, offset: "", ssrcs: Array(ssrcs), limit: 100, sortAscending: true)
|
||||
|> deliverOnMainQueue).start(next: { [weak self] state in
|
||||
@ -1320,6 +1326,8 @@ public final class GroupCallParticipantsContext {
|
||||
strongSelf.isLoadingMore = false
|
||||
|
||||
strongSelf.missingSsrcs.subtract(ssrcs)
|
||||
|
||||
Logger.shared.log("GroupCallParticipantsContext", "did receive response for ssrcs=\(ssrcs), \(state.participants)")
|
||||
|
||||
var updatedState = strongSelf.stateValue.state
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"app": "7.6",
|
||||
"app": "7.6.1",
|
||||
"bazel": "4.0.0",
|
||||
"xcode": "12.4"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user