Преглед на файлове

same formatting for detected phone numbers and email addresses

cyberta преди 5 години
родител
ревизия
f4c7b7243b
променени са 1 файла, в които са добавени 3 реда и са изтрити 9 реда
  1. 3 9
      deltachat-ios/Controller/ChatViewController.swift

+ 3 - 9
deltachat-ios/Controller/ChatViewController.swift

@@ -813,15 +813,9 @@ extension ChatViewController: MessagesDisplayDelegate {
     }
 
     func detectorAttributes(for detector: DetectorType, and message: MessageType, at indexPath: IndexPath) -> [NSAttributedString.Key: Any] {
-        switch detector {
-        case .url:
-            return  [NSAttributedString.Key.foregroundColor: DcColors.defaultTextColor,
-                     NSAttributedString.Key.underlineStyle: NSUnderlineStyle.single.rawValue,
-                     NSAttributedString.Key.underlineColor: DcColors.defaultTextColor]
-        default:
-            return MessageLabel.defaultAttributes
-        }
-
+        return  [ NSAttributedString.Key.foregroundColor: DcColors.defaultTextColor,
+                  NSAttributedString.Key.underlineStyle: NSUnderlineStyle.single.rawValue,
+                  NSAttributedString.Key.underlineColor: DcColors.defaultTextColor ]
     }
 
 }