mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[WIP] Birthdays
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user