Conceal login codes in chat list

This commit is contained in:
Ilya Laktyushin
2023-04-25 04:31:20 +04:00
parent b4ffedcc3d
commit 385c65d908
2 changed files with 42 additions and 4 deletions

View File

@@ -17356,9 +17356,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))
}