Web app improvements

This commit is contained in:
Ilya Laktyushin
2022-04-06 12:45:58 +04:00
parent 94c269ec8c
commit c4f4203c02
26 changed files with 363 additions and 148 deletions

View File

@@ -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)