diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 7edfa28d3c..b0485309c5 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -6803,3 +6803,7 @@ Ads should no longer be synonymous with abuse of user privacy. Let us redefine h "Conversation.ContextMenuSeen_1" = "1 Seen"; "Conversation.ContextMenuSeen_any" = "%@ Seen"; + +"Conversation.ContextMenuNoViews" = "Nobody Viewed"; +"Conversation.ContextMenuNobodyListened" = "Nobody Listened"; +"Conversation.ContextMenuNobodyWatched" = "Nobody Watched"; diff --git a/submodules/TelegramUI/Sources/ChatInterfaceStateContextMenus.swift b/submodules/TelegramUI/Sources/ChatInterfaceStateContextMenus.swift index 04b2756f19..feafadf037 100644 --- a/submodules/TelegramUI/Sources/ChatInterfaceStateContextMenus.swift +++ b/submodules/TelegramUI/Sources/ChatInterfaceStateContextMenus.swift @@ -1871,7 +1871,18 @@ private final class ChatReadReportContextItemNode: ASDisplayNode, ContextMenuCus if let currentStats = self.currentStats { if currentStats.peers.isEmpty { - self.textNode.attributedText = NSAttributedString(string: " ", font: textFont, textColor: self.presentationData.theme.contextMenu.secondaryColor) + var text = self.presentationData.strings.Conversation_ContextMenuNoViews + for media in self.item.message.media { + if let file = media as? TelegramMediaFile { + if file.isVoice { + text = self.presentationData.strings.Conversation_ContextMenuNobodyListened + } else if file.isInstantVideo { + text = self.presentationData.strings.Conversation_ContextMenuNobodyWatched + } + } + } + + self.textNode.attributedText = NSAttributedString(string: text, font: textFont, textColor: self.presentationData.theme.contextMenu.secondaryColor) } else if currentStats.peers.count == 1 { self.textNode.attributedText = NSAttributedString(string: currentStats.peers[0].displayTitle(strings: self.presentationData.strings, displayOrder: self.presentationData.nameDisplayOrder), font: textFont, textColor: self.presentationData.theme.contextMenu.primaryColor) } else {