mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Add bot commands menu
This commit is contained in:
@@ -2327,7 +2327,6 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
|
||||
}
|
||||
|
||||
if !messages.isEmpty || self.chatPresentationInterfaceState.interfaceState.forwardMessageIds != nil {
|
||||
|
||||
if let forwardMessageIds = self.chatPresentationInterfaceState.interfaceState.forwardMessageIds {
|
||||
for id in forwardMessageIds {
|
||||
messages.append(.forward(source: id, grouping: .auto, attributes: [], correlationId: nil))
|
||||
@@ -2453,6 +2452,10 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
|
||||
if (self.context.sharedContext.currentPresentationData.with({ $0 })).reduceMotion {
|
||||
return false
|
||||
}
|
||||
|
||||
if self.chatPresentationInterfaceState.showCommands {
|
||||
return false
|
||||
}
|
||||
|
||||
switch self.historyNode.visibleContentOffset() {
|
||||
case let .known(value) where value < 20.0:
|
||||
|
||||
Reference in New Issue
Block a user