mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Web app improvements
This commit is contained in:
@@ -142,6 +142,8 @@ public final class ChatPanelInterfaceInteraction {
|
||||
public let openSendAsPeer: (ASDisplayNode, ContextGesture?) -> Void
|
||||
public let presentChatRequestAdminInfo: () -> Void
|
||||
public let displayCopyProtectionTip: (ASDisplayNode, Bool) -> Void
|
||||
public let openWebView: (String, String, Bool, Bool) -> Void
|
||||
public let updateShowWebView: ((Bool) -> Bool) -> Void
|
||||
public let chatController: () -> ViewController?
|
||||
public let statuses: ChatPanelInterfaceInteractionStatuses?
|
||||
|
||||
@@ -234,6 +236,8 @@ public final class ChatPanelInterfaceInteraction {
|
||||
openSendAsPeer: @escaping (ASDisplayNode, ContextGesture?) -> Void,
|
||||
presentChatRequestAdminInfo: @escaping () -> Void,
|
||||
displayCopyProtectionTip: @escaping (ASDisplayNode, Bool) -> Void,
|
||||
openWebView: @escaping (String, String, Bool, Bool) -> Void,
|
||||
updateShowWebView: @escaping ((Bool) -> Bool) -> Void,
|
||||
chatController: @escaping () -> ViewController?,
|
||||
statuses: ChatPanelInterfaceInteractionStatuses?
|
||||
) {
|
||||
@@ -325,6 +329,8 @@ public final class ChatPanelInterfaceInteraction {
|
||||
self.openSendAsPeer = openSendAsPeer
|
||||
self.presentChatRequestAdminInfo = presentChatRequestAdminInfo
|
||||
self.displayCopyProtectionTip = displayCopyProtectionTip
|
||||
self.openWebView = openWebView
|
||||
self.updateShowWebView = updateShowWebView
|
||||
self.chatController = chatController
|
||||
self.statuses = statuses
|
||||
}
|
||||
@@ -423,6 +429,8 @@ public final class ChatPanelInterfaceInteraction {
|
||||
}, openSendAsPeer: { _, _ in
|
||||
}, presentChatRequestAdminInfo: {
|
||||
}, displayCopyProtectionTip: { _, _ in
|
||||
}, openWebView: { _, _, _, _ in
|
||||
}, updateShowWebView: { _ in
|
||||
}, chatController: {
|
||||
return nil
|
||||
}, statuses: nil)
|
||||
|
||||
Reference in New Issue
Block a user