Escape asterisks in peer names in live location panel subtitle [skip ci]

This commit is contained in:
Ilya Laktyushin 2020-01-21 20:35:37 +03:00
parent 53bf42bffc
commit 5d684792b2
4 changed files with 3294 additions and 3289 deletions

View File

@ -5291,3 +5291,5 @@ Any member of this group will be able to see messages in the channel.";
"Forward.ErrorPublicQuizDisabledInChannels" = "Sorry, public polls cant be forwarded to channels.";
"Map.PlacesInThisArea" = "Places In This Area";
"Conversation.LiveLocationYouAndOther" = "**You** and %@";

View File

@ -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
}