Various improvements

This commit is contained in:
Ilya Laktyushin
2024-10-26 01:25:07 +04:00
parent 38b6555518
commit 4b537a4cd5
24 changed files with 390 additions and 111 deletions

View File

@@ -253,6 +253,7 @@ public final class ChatControllerInteraction: ChatControllerInteractionProtocol
public let openJoinLink: (String) -> Void
public let openWebView: (String, String, Bool, ChatOpenWebViewSource) -> Void
public let activateAdAction: (EngineMessage.Id, Promise<Bool>?, Bool, Bool) -> Void
public let adContextAction: (Message, ASDisplayNode, ContextGesture?) -> Void
public let openRequestedPeerSelection: (EngineMessage.Id, ReplyMarkupButtonRequestPeerType, Int32, Int32) -> Void
public let saveMediaToFiles: (EngineMessage.Id) -> Void
public let openNoAdsDemo: () -> Void
@@ -384,6 +385,7 @@ public final class ChatControllerInteraction: ChatControllerInteractionProtocol
openJoinLink: @escaping (String) -> Void,
openWebView: @escaping (String, String, Bool, ChatOpenWebViewSource) -> Void,
activateAdAction: @escaping (EngineMessage.Id, Promise<Bool>?, Bool, Bool) -> Void,
adContextAction: @escaping (Message, ASDisplayNode, ContextGesture?) -> Void,
openRequestedPeerSelection: @escaping (EngineMessage.Id, ReplyMarkupButtonRequestPeerType, Int32, Int32) -> Void,
saveMediaToFiles: @escaping (EngineMessage.Id) -> Void,
openNoAdsDemo: @escaping () -> Void,
@@ -494,6 +496,7 @@ public final class ChatControllerInteraction: ChatControllerInteractionProtocol
self.openJoinLink = openJoinLink
self.openWebView = openWebView
self.activateAdAction = activateAdAction
self.adContextAction = adContextAction
self.openRequestedPeerSelection = openRequestedPeerSelection
self.saveMediaToFiles = saveMediaToFiles
self.openNoAdsDemo = openNoAdsDemo