mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-30 11:49:16 +00:00
ChatListController: user compactDisplayTitle for chat remove actions
This commit is contained in:
parent
d4b8e6c817
commit
2513cb584f
@ -477,7 +477,7 @@ public class ChatListController: TelegramController, KeyShortcutResponder, UIVie
|
|||||||
beginClear(.forLocalPeer)
|
beginClear(.forLocalPeer)
|
||||||
actionSheet?.dismissAnimated()
|
actionSheet?.dismissAnimated()
|
||||||
}))
|
}))
|
||||||
items.append(ActionSheetButtonItem(title: strongSelf.presentationData.strings.ChatList_DeleteForEveryone(mainPeer.displayTitle(strings: strongSelf.presentationData.strings, displayOrder: strongSelf.presentationData.nameDisplayOrder)).0, color: .destructive, action: { [weak actionSheet] in
|
items.append(ActionSheetButtonItem(title: strongSelf.presentationData.strings.ChatList_DeleteForEveryone(mainPeer.compactDisplayTitle).0, color: .destructive, action: { [weak actionSheet] in
|
||||||
beginClear(.forEveryone)
|
beginClear(.forEveryone)
|
||||||
actionSheet?.dismissAnimated()
|
actionSheet?.dismissAnimated()
|
||||||
}))
|
}))
|
||||||
@ -1224,7 +1224,7 @@ public class ChatListController: TelegramController, KeyShortcutResponder, UIVie
|
|||||||
})
|
})
|
||||||
completion(true)
|
completion(true)
|
||||||
}))
|
}))
|
||||||
items.append(ActionSheetButtonItem(title: self.presentationData.strings.ChatList_DeleteForEveryone(mainPeer.displayTitle(strings: self.presentationData.strings, displayOrder: self.presentationData.nameDisplayOrder)).0, color: .destructive, action: { [weak self, weak actionSheet] in
|
items.append(ActionSheetButtonItem(title: self.presentationData.strings.ChatList_DeleteForEveryone(mainPeer.compactDisplayTitle).0, color: .destructive, action: { [weak self, weak actionSheet] in
|
||||||
actionSheet?.dismissAnimated()
|
actionSheet?.dismissAnimated()
|
||||||
self?.schedulePeerChatRemoval(peer: peer, type: .forEveryone, deleteGloballyIfPossible: deleteGloballyIfPossible, completion: {
|
self?.schedulePeerChatRemoval(peer: peer, type: .forEveryone, deleteGloballyIfPossible: deleteGloballyIfPossible, completion: {
|
||||||
removed()
|
removed()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user