mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Escape asterisks in peer names in live location panel subtitle
This commit is contained in:
parent
47896caf05
commit
fd867a92c7
4 changed files with 3347 additions and 3342 deletions
|
|
@ -5282,3 +5282,5 @@ Any member of this group will be able to see messages in the channel.";
|
|||
"Forward.ErrorPublicQuizDisabledInChannels" = "Sorry, public polls can’t be forwarded to channels.";
|
||||
|
||||
"Map.PlacesInThisArea" = "Places In This Area";
|
||||
|
||||
"Conversation.LiveLocationYouAndOther" = "**You** and %@";
|
||||
|
|
|
|||
|
|
@ -135,13 +135,13 @@ final class LocationBroadcastNavigationAccessoryPanel: ASDisplayNode {
|
|||
} else {
|
||||
let otherString: String
|
||||
if filteredPeers.count == 1 {
|
||||
otherString = peers[0].compactDisplayTitle
|
||||
otherString = peers[0].compactDisplayTitle.replacingOccurrences(of: "*", with: "")
|
||||
} else {
|
||||
otherString = self.strings.Conversation_LiveLocationMembersCount(Int32(peers.count))
|
||||
}
|
||||
let rawText: String
|
||||
if filteredPeers.count != peers.count {
|
||||
rawText = self.strings.Conversation_LiveLocationYouAnd(otherString).0.replacingOccurrences(of: "*", with: "**")
|
||||
rawText = self.strings.Conversation_LiveLocationYouAndOther(otherString).0
|
||||
} else {
|
||||
rawText = otherString
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue