mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactor string generation
This commit is contained in:
@@ -119,7 +119,7 @@ final class LocationBroadcastNavigationAccessoryPanel: ASDisplayNode {
|
||||
case .summary:
|
||||
let text: String
|
||||
if peers.count == 1 {
|
||||
text = self.strings.DialogList_LiveLocationSharingTo(peers[0].displayTitle(strings: self.strings, displayOrder: self.nameDisplayOrder)).0
|
||||
text = self.strings.DialogList_LiveLocationSharingTo(peers[0].displayTitle(strings: self.strings, displayOrder: self.nameDisplayOrder)).string
|
||||
} else {
|
||||
text = self.strings.DialogList_LiveLocationChatsCount(Int32(peers.count))
|
||||
}
|
||||
@@ -140,7 +140,7 @@ final class LocationBroadcastNavigationAccessoryPanel: ASDisplayNode {
|
||||
}
|
||||
let rawText: String
|
||||
if filteredPeers.count != peers.count {
|
||||
rawText = self.strings.Conversation_LiveLocationYouAndOther(otherString).0
|
||||
rawText = self.strings.Conversation_LiveLocationYouAndOther(otherString).string
|
||||
} else {
|
||||
rawText = otherString
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user