mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
WIP
This commit is contained in:
@@ -442,6 +442,7 @@ public final class VoiceChatController: ViewController {
|
||||
guard let peer = view.peers[view.peerId] else {
|
||||
return
|
||||
}
|
||||
//TODO:localize
|
||||
var subtitle = "group"
|
||||
if let cachedData = view.cachedData as? CachedChannelData {
|
||||
if let memberCount = cachedData.participantsSummary.memberCount {
|
||||
@@ -450,7 +451,7 @@ public final class VoiceChatController: ViewController {
|
||||
}
|
||||
|
||||
let titleView = VoiceChatControllerTitleView(theme: strongSelf.presentationData.theme)
|
||||
titleView.set(title: peer.debugDisplayTitle, subtitle: subtitle)
|
||||
titleView.set(title: "Voice Chat", subtitle: subtitle)
|
||||
strongSelf.controller?.navigationItem.titleView = titleView
|
||||
|
||||
if !strongSelf.didSetDataReady {
|
||||
@@ -522,7 +523,7 @@ public final class VoiceChatController: ViewController {
|
||||
}
|
||||
|
||||
var items: [ContextMenuItem] = []
|
||||
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.VoiceChat_SpeakPermissionEveryone, icon: { theme in
|
||||
/*items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.VoiceChat_SpeakPermissionEveryone, icon: { theme in
|
||||
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Check"), color: theme.actionSheet.primaryTextColor)
|
||||
}, action: { _, f in
|
||||
f(.dismissWithoutContent)
|
||||
@@ -532,7 +533,7 @@ public final class VoiceChatController: ViewController {
|
||||
f(.dismissWithoutContent)
|
||||
|
||||
})))
|
||||
items.append(.separator)
|
||||
items.append(.separator)*/
|
||||
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.VoiceChat_Share, icon: { theme in
|
||||
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Link"), color: theme.actionSheet.primaryTextColor)
|
||||
}, action: { [weak self] _, f in
|
||||
|
||||
Reference in New Issue
Block a user