nayooti 5 жил өмнө
parent
commit
a06656e99c

+ 0 - 1
deltachat-ios/Controller/ChatListController.swift

@@ -70,7 +70,6 @@ class ChatListController: UIViewController {
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
         updateTitle()
-        print("ViewWillAppear: \(viewModel.searchActive)")
     }
 
     override func viewDidAppear(_ animated: Bool) {

+ 1 - 9
deltachat-ios/ViewModel/ChatListViewModel.swift

@@ -6,9 +6,6 @@ protocol AvatarCellViewModel {
     var titleHighlightIndexes: [Int] { get }
     var subtitle: String { get }
     var subtitleHighlightIndexes: [Int] { get }
-    var avartarTitle: String { get }
-    // var avatarColor: String { get }
-    // add highlighting search results
 }
 
 enum CellModel {
@@ -39,8 +36,7 @@ protocol ChatListViewModelProtocol: class, UISearchResultsUpdating {
     func getCellViewModelFor(indexPath: IndexPath) -> AvatarCellViewModel
     func beginFiltering()
     func endFiltering()
-    var searchActive: Bool { get }
-    
+
     func archieveChat(chatId: Int)
     func deleteChat(chatId: Int)
 }
@@ -93,10 +89,6 @@ class ChatCellViewModel: AvatarCellViewModel{
         return result
     }
 
-    var avartarTitle: String {
-        return "ABC"
-    }
-
     var titleHighlightIndexes: [Int]
     var subtitleHighlightIndexes: [Int]