mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Add a special case for tap-and-context menu
This commit is contained in:
@@ -161,10 +161,12 @@ public struct ChatMessageBubbleContentTapAction {
|
||||
}
|
||||
|
||||
public var content: Content
|
||||
public var hasLongTapAction: Bool
|
||||
public var activate: (() -> Promise<Bool>?)?
|
||||
|
||||
public init(content: Content, activate: (() -> Promise<Bool>?)? = nil) {
|
||||
public init(content: Content, hasLongTapAction: Bool = true, activate: (() -> Promise<Bool>?)? = nil) {
|
||||
self.content = content
|
||||
self.hasLongTapAction = hasLongTapAction
|
||||
self.activate = activate
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user