Add missing strings

This commit is contained in:
Isaac 2024-03-01 12:58:06 +04:00
parent d0f8ce7a3a
commit 10aa90b94a
2 changed files with 4 additions and 1 deletions

View File

@ -11585,3 +11585,6 @@ to respond to messages faster.";
"ChatbotSetup.BotAddAction" = "ADD";
"ChatbotSetup.BotNotFoundStatus" = "Chatbot not found";
"Chat.QuickReply.ServiceHeader1" = "To edit or delete your quick reply, tap an hold on it.";
"Chat.QuickReply.ServiceHeader2" = "To use this quick reply in a chat, type / and select the shortcut from the list.";

View File

@ -519,7 +519,7 @@ func chatHistoryEntriesForView(
if let subject = associatedData.subject, case let .customChatContents(customChatContents) = subject, case let .quickReplyMessageInput(_, shortcutType) = customChatContents.kind, case .generic = shortcutType {
if !view.isLoading && view.laterId == nil && !view.entries.isEmpty {
for i in 0 ..< 2 {
let string = i == 1 ? "To edit or delete your quick reply, tap an hold on it." : "To use this quick reply in a chat, type / and select the shortcut from the list."
let string = i == 1 ? presentationData.strings.Chat_QuickReply_ServiceHeader1 : presentationData.strings.Chat_QuickReply_ServiceHeader2
let formattedString = parseMarkdownIntoAttributedString(
string,
attributes: MarkdownAttributes(