Fix build

This commit is contained in:
Ilya Laktyushin 2023-12-01 01:00:52 +04:00
parent a2f2411eaa
commit 271682488a
2 changed files with 6 additions and 4 deletions

View File

@ -10598,6 +10598,6 @@ Sorry for the inconvenience.";
"Chat.Reactions.MultiplePremiumTooltip" = "You can set multiple reactions with [Telegram Premium]()."; "Chat.Reactions.MultiplePremiumTooltip" = "You can set multiple reactions with [Telegram Premium]().";
"Notification.Wallpaper.Remove" = "Remove"; "Notification.Wallpaper.Remove" = "Remove";
"Char.RemoveWallpaper.Title" = "Remove Wallpaper"; "Chat.RemoveWallpaper.Title" = "Remove Wallpaper";
"Char.RemoveWallpaper.Text" = "Are you sure you want to reset the wallpaper?"; "Chat.RemoveWallpaper.Text" = "Are you sure you want to reset the wallpaper?";
"Char.RemoveWallpaper.Remove" = "Remove"; "Chat.RemoveWallpaper.Remove" = "Remove";

View File

@ -197,7 +197,9 @@ public class ChatMessageWallpaperBubbleContentNode: ChatMessageBubbleContentNode
let controller = textAlertController(context: item.context, title: item.presentationData.strings.Chat_RemoveWallpaper_Title, text: item.presentationData.strings.Chat_RemoveWallpaper_Text, actions: [ let controller = textAlertController(context: item.context, title: item.presentationData.strings.Chat_RemoveWallpaper_Title, text: item.presentationData.strings.Chat_RemoveWallpaper_Text, actions: [
TextAlertAction(type: .genericAction, title: item.presentationData.strings.Common_Cancel, action: {}), TextAlertAction(type: .genericAction, title: item.presentationData.strings.Common_Cancel, action: {}),
TextAlertAction(type: .destructiveAction, title: item.presentationData.strings.Chat_RemoveWallpaper_Remove, action: { [weak item] in TextAlertAction(type: .destructiveAction, title: item.presentationData.strings.Chat_RemoveWallpaper_Remove, action: { [weak item] in
let _ = item?.context.engine.themes.revertChatWallpaper(peerId: item.message.id.peerId).startStandalone() if let item {
let _ = item.context.engine.themes.revertChatWallpaper(peerId: item.message.id.peerId).startStandalone()
}
}) })
]) ])
item.controllerInteraction.presentController(controller, nil) item.controllerInteraction.presentController(controller, nil)