alqindiirsyam 3 years ago
parent
commit
3ca0139bdd

+ 0 - 1
appbuilder-ios/AppBuilder/AppBuilder/SecondTabViewController.swift

@@ -806,7 +806,6 @@ extension SecondTabViewController: UITableViewDelegate, UITableViewDataSource {
             } else if let stringText = text as? String {
                 messageView.text = stringText
             }
-            messageView.font = UIFont.systemFont(ofSize: 12)
             messageView.numberOfLines = 2
             
             if data.counter != "0" {

+ 2 - 5
appbuilder-ios/NexilisLite/NexilisLite/Source/Extension.swift

@@ -574,11 +574,8 @@ extension String {
         return length
     }
     
-    public func richText(isUcList: Bool = false, isEditing: Bool = false, first: Int = 0, last: Int = 0) -> NSAttributedString {
-        var font = UIFont.systemFont(ofSize: 12)
-        if isUcList {
-            font = UIFont.systemFont(ofSize: 10)
-        }
+    public func richText(isEditing: Bool = false, first: Int = 0, last: Int = 0) -> NSAttributedString {
+        let font = UIFont.systemFont(ofSize: 12)
         let textUTF8 = String(self.utf8)
         let finalText = NSMutableAttributedString(string: textUTF8, attributes: [NSAttributedString.Key.font: font])
         var boolStar = false

+ 3 - 3
appbuilder-ios/NexilisLite/NexilisLite/Source/Utils.swift

@@ -77,14 +77,14 @@ public final class Utils {
             return "📄 " + "Live Streaming".localized()
         } else if !chat.image.isEmpty {
             if !chat.messageText.isEmpty {
-                return "📷 \(chat.messageText)".richText(isUcList: true)
+                return "📷 \(chat.messageText)".richText()
             } else {
                 return "📷 " + "Photo".localized()
             }
         }
         else if !chat.video.isEmpty {
             if !chat.messageText.isEmpty {
-                return "📹 \(chat.messageText)".richText(isUcList: true)
+                return "📹 \(chat.messageText)".richText()
             } else {
                 return "📹 " + "Video".localized()
             }
@@ -98,7 +98,7 @@ public final class Utils {
             return "❤️ " + "Sticker".localized()
         }
         else {
-            return chat.messageText.richText(isUcList: true)
+            return chat.messageText.richText()
         }
     }
     

+ 2 - 3
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Control/ContactChatViewController.swift

@@ -73,7 +73,7 @@ class ContactChatViewController: UITableViewController {
         navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Cancel".localized(), style: .plain, target: self, action: #selector(cancel(sender:)))
         
         var childrenMenu : [UIAction] = [
-            UIAction(title: "Create Group", image: UIImage(systemName: "person.and.person"), handler: {[weak self](_) in
+            UIAction(title: "Create Group".localized(), image: UIImage(systemName: "person.and.person"), handler: {[weak self](_) in
                 let controller = AppStoryBoard.Palio.instance.instantiateViewController(identifier: "createGroupNav") as! UINavigationController
                 let vc = controller.topViewController as! GroupCreateViewController
                 vc.isDismiss = { id in
@@ -100,7 +100,7 @@ class ContactChatViewController: UITableViewController {
 //            UIAction(title: "Configure Email", image: UIImage(systemName: "mail"), handler: {[weak self](_) in
 //
 //            }),
-            UIAction(title: "Favorite Messages", image: UIImage(systemName: "star"), handler: {[weak self](_) in
+            UIAction(title: "Favorite Messages".localized(), image: UIImage(systemName: "star"), handler: {[weak self](_) in
                 let editorStaredVC = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "staredVC") as! EditorStarMessages
                 self?.navigationController?.show(editorStaredVC, sender: nil)
             }),
@@ -710,7 +710,6 @@ extension ContactChatViewController {
             } else if let stringText = text as? String {
                 messageView.text = stringText
             }
-            messageView.font = UIFont.systemFont(ofSize: 12)
             messageView.numberOfLines = 2
             
             if data.counter != "0" {