Privacy settings

This commit is contained in:
Isaac
2024-01-12 22:42:18 +04:00
parent 5b7d4984ac
commit eeba8a7db1
70 changed files with 2586 additions and 521 deletions

View File

@@ -24,7 +24,7 @@ public final class PeerSelectionControllerImpl: ViewController, PeerSelectionCon
private let forumPeerId: EnginePeer.Id?
private let selectForumThreads: Bool
private let attemptSelection: ((EnginePeer, Int64?) -> Void)?
private let attemptSelection: ((EnginePeer, Int64?, ChatListDisabledPeerReason) -> Void)?
private let createNewGroup: (() -> Void)?
public var inProgress: Bool = false {
@@ -289,9 +289,9 @@ public final class PeerSelectionControllerImpl: ViewController, PeerSelectionCon
}
}
self.peerSelectionNode.requestOpenDisabledPeer = { [weak self] peer, threadId in
self.peerSelectionNode.requestOpenDisabledPeer = { [weak self] peer, threadId, reason in
if let strongSelf = self {
strongSelf.attemptSelection?(peer, threadId)
strongSelf.attemptSelection?(peer, threadId, reason)
}
}