Merge commit '385c65d908abd7d3f6451a42ae7cdc7ace805d70'

# Conflicts:
#	submodules/ChatListUI/Sources/Node/ChatListItem.swift
This commit is contained in:
Ali
2023-04-25 18:05:51 +04:00
3 changed files with 41 additions and 14 deletions

View File

@@ -17271,9 +17271,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
}))
case let .withBotStartPayload(startPayload):
if case .peer(peerId.id) = strongSelf.chatLocation {
strongSelf.updateChatPresentationInterfaceState(animated: true, interactive: true, {
$0.updatedBotStartPayload(startPayload.payload)
})
strongSelf.startBot(startPayload.payload)
} else if let navigationController = strongSelf.effectiveNavigationController {
strongSelf.context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: strongSelf.context, chatLocation: .peer(peerId), botStart: startPayload, keepStack: .always))
}