mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Use peer name localization
This commit is contained in:
@@ -295,7 +295,7 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder {
|
||||
locationBroadcastAccessoryPanel.updateLayout(size: panelFrame.size, leftInset: layout.safeInsets.left, rightInset: layout.safeInsets.right, transition: transition)
|
||||
} else {
|
||||
let presentationData = self.context.sharedContext.currentPresentationData.with { $0 }
|
||||
locationBroadcastAccessoryPanel = LocationBroadcastNavigationAccessoryPanel(accountPeerId: self.context.account.peerId, theme: presentationData.theme, strings: presentationData.strings, tapAction: { [weak self] in
|
||||
locationBroadcastAccessoryPanel = LocationBroadcastNavigationAccessoryPanel(accountPeerId: self.context.account.peerId, theme: presentationData.theme, strings: presentationData.strings, nameDisplayOrder: presentationData.nameDisplayOrder, tapAction: { [weak self] in
|
||||
if let strongSelf = self {
|
||||
switch strongSelf.locationBroadcastPanelSource {
|
||||
case .none:
|
||||
@@ -325,7 +325,7 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder {
|
||||
}
|
||||
|
||||
if let beginTimeAndTimeout = beginTimeAndTimeout {
|
||||
items.append(LocationBroadcastActionSheetItem(context: strongSelf.context, peer: peer, title: peer.displayTitle, beginTimestamp: beginTimeAndTimeout.0, timeout: beginTimeAndTimeout.1, strings: presentationData.strings, action: {
|
||||
items.append(LocationBroadcastActionSheetItem(context: strongSelf.context, peer: peer, title: peer.displayTitle(strings: presentationData.strings, displayOrder: presentationData.nameDisplayOrder), beginTimestamp: beginTimeAndTimeout.0, timeout: beginTimeAndTimeout.1, strings: presentationData.strings, action: {
|
||||
dismissAction()
|
||||
if let strongSelf = self {
|
||||
presentLiveLocationController(context: strongSelf.context, peerId: peer.id, controller: strongSelf)
|
||||
@@ -382,7 +382,7 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder {
|
||||
if let closePeers = closePeers, !closePeers.isEmpty {
|
||||
items.append(ActionSheetTextItem(title: presentationData.strings.LiveLocation_MenuChatsCount(Int32(closePeers.count))))
|
||||
for peer in closePeers {
|
||||
items.append(ActionSheetButtonItem(title: peer.displayTitle, action: {
|
||||
items.append(ActionSheetButtonItem(title: peer.displayTitle(strings: presentationData.strings, displayOrder: presentationData.nameDisplayOrder), action: {
|
||||
dismissAction()
|
||||
if let strongSelf = self {
|
||||
presentLiveLocationController(context: strongSelf.context, peerId: peer.id, controller: strongSelf)
|
||||
|
||||
Reference in New Issue
Block a user