alqindiirsyam 3 anos atrás
pai
commit
0d59d53588

+ 5 - 0
appbuilder-ios/NexilisLite/NexilisLite/Resource/id.lproj/Localizable.strings

@@ -104,3 +104,8 @@
 "Select" = "Pilih";
 "Select Language" = "Pilih Bahasa";
 "You must change your name to use this feature" = "Anda harus mengubah nama anda agar dapat meggunakan fitur ini";
+"Create Group" = "Buat Grup";
+"Add Friend" = "Tambah Teman";
+"Favorite Messages" = "Pesan Favorit";
+"Broadcast Message" = "Pesan Siaran";
+"Live Streaming" = "Siaran Langsung";

+ 12 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Control/ContactChatViewController.swift

@@ -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)