Fix incorrect string

This commit is contained in:
Ilya Laktyushin 2021-03-15 23:59:14 +04:00
parent 70f5c97eb3
commit 5f8bd57ca2

View File

@ -46,9 +46,9 @@ final class ChatRecentActionsController: TelegramBaseController {
if let strongSelf = self {
let text: String
if let channel = peer as? TelegramChannel, case .broadcast = channel.info {
text = strongSelf.presentationData.strings.Channel_AdminLog_InfoPanelAlertText
} else {
text = strongSelf.presentationData.strings.Channel_AdminLog_InfoPanelChannelAlertText
} else {
text = strongSelf.presentationData.strings.Channel_AdminLog_InfoPanelAlertText
}
self?.present(textAlertController(context: strongSelf.context, title: strongSelf.presentationData.strings.Channel_AdminLog_InfoPanelAlertTitle, text: text, actions: [TextAlertAction(type: .defaultAction, title: strongSelf.presentationData.strings.Common_OK, action: {})]), in: .window(.root))
}