|
@@ -108,10 +108,21 @@ class ContactChatViewController: UITableViewController {
|
|
|
//debug only
|
|
|
// isAdmin = true
|
|
|
if(isAdmin){
|
|
|
- childrenMenu.append(UIAction(title: "Broadcast Message", image: UIImage(systemName: "envelope.open"), handler: {[weak self](_) in
|
|
|
+ childrenMenu.append(UIAction(title: "Broadcast Message".localized(), image: UIImage(systemName: "envelope.open"), handler: {[weak self](_) in
|
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(identifier: "broadcastNav")
|
|
|
self?.navigationController?.present(controller, animated: true, completion: nil)
|
|
|
}))
|
|
|
+ childrenMenu.append(UIAction(title: "Live Streaming".localized(), image: UIImage(systemName: "video.bubble.left"), handler: {[weak self](_) in
|
|
|
+ let navigationController = UINavigationController(rootViewController: QmeraCreateStreamingViewController())
|
|
|
+ navigationController.modalPresentationStyle = .custom
|
|
|
+ navigationController.navigationBar.tintColor = .white
|
|
|
+ navigationController.navigationBar.barTintColor = .mainColor
|
|
|
+ navigationController.navigationBar.isTranslucent = false
|
|
|
+ let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
+ navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
+ navigationController.view.backgroundColor = .mainColor
|
|
|
+ self?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
|
+ }))
|
|
|
}
|
|
|
|
|
|
let menu = UIMenu(title: "", children: childrenMenu)
|