diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index eb9edc006c..a61f9028ba 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -10598,6 +10598,6 @@ Sorry for the inconvenience."; "Chat.Reactions.MultiplePremiumTooltip" = "You can set multiple reactions with [Telegram Premium]()."; "Notification.Wallpaper.Remove" = "Remove"; -"Char.RemoveWallpaper.Title" = "Remove Wallpaper"; -"Char.RemoveWallpaper.Text" = "Are you sure you want to reset the wallpaper?"; -"Char.RemoveWallpaper.Remove" = "Remove"; +"Chat.RemoveWallpaper.Title" = "Remove Wallpaper"; +"Chat.RemoveWallpaper.Text" = "Are you sure you want to reset the wallpaper?"; +"Chat.RemoveWallpaper.Remove" = "Remove"; diff --git a/submodules/TelegramUI/Components/Chat/ChatMessageWallpaperBubbleContentNode/Sources/ChatMessageWallpaperBubbleContentNode.swift b/submodules/TelegramUI/Components/Chat/ChatMessageWallpaperBubbleContentNode/Sources/ChatMessageWallpaperBubbleContentNode.swift index 0f85a555ba..dc835683d2 100644 --- a/submodules/TelegramUI/Components/Chat/ChatMessageWallpaperBubbleContentNode/Sources/ChatMessageWallpaperBubbleContentNode.swift +++ b/submodules/TelegramUI/Components/Chat/ChatMessageWallpaperBubbleContentNode/Sources/ChatMessageWallpaperBubbleContentNode.swift @@ -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: [ TextAlertAction(type: .genericAction, title: item.presentationData.strings.Common_Cancel, action: {}), 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)