Fix dismiss

This commit is contained in:
Isaac 2024-01-30 18:57:32 +01:00
parent f51b91aa77
commit 8f10c8e526

View File

@ -415,8 +415,8 @@ extension ChatControllerImpl {
//TODO:localize //TODO:localize
let rect = self.chatDisplayNode.view.convert(targetView.bounds, from: targetView).insetBy(dx: -8.0, dy: -8.0) let rect = self.chatDisplayNode.view.convert(targetView.bounds, from: targetView).insetBy(dx: -8.0, dy: -8.0)
let tooltipScreen = TooltipScreen(account: self.context.account, sharedContext: self.context.sharedContext, text: .plain(text: "Tap and hold to add a name to your tag"), location: .point(rect, .bottom), displayDuration: .custom(5.0), shouldDismissOnTouch: { point, _ in let tooltipScreen = TooltipScreen(account: self.context.account, sharedContext: self.context.sharedContext, text: .plain(text: "Tap and hold to add a name to your tag"), location: .point(rect, .bottom), displayDuration: .custom(5.0), shouldDismissOnTouch: { _, _ in
return .ignore return .dismiss(consume: false)
}) })
self.present(tooltipScreen, in: .current) self.present(tooltipScreen, in: .current)