mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Escape asterisks in peer names in live location panel subtitle [skip ci]
This commit is contained in:
parent
53bf42bffc
commit
5d684792b2
@ -5291,3 +5291,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…
x
Reference in New Issue
Block a user