[WIP] Birthdays

This commit is contained in:
Ilya Laktyushin
2024-03-14 16:20:50 +04:00
parent 636f35cb8e
commit a509b096a9
21 changed files with 129 additions and 21 deletions

View File

@@ -3385,6 +3385,15 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
return nil
}
func frameForGiftButton() -> CGRect? {
if let textInputPanelNode = self.textInputPanelNode, self.inputPanelNode === textInputPanelNode {
return textInputPanelNode.frameForGiftButton().flatMap {
return $0.offsetBy(dx: textInputPanelNode.frame.minX, dy: textInputPanelNode.frame.minY)
}
}
return nil
}
var isTextInputPanelActive: Bool {
return self.inputPanelNode is ChatTextInputPanelNode
}