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

+ 10 - 8
deltachat-ios/Controller/ChatListController.swift

@@ -79,15 +79,18 @@ class ChatListController: UIViewController {
     override func viewDidAppear(_ animated: Bool) {
         super.viewDidAppear(animated)
         let nc = NotificationCenter.default
-        msgChangedObserver = nc.addObserver(forName: dcNotificationChanged,
-                                            object: nil, queue: nil) { _ in
-                                                self.chatTable.reloadData()
+        msgChangedObserver = nc.addObserver(
+            forName: dcNotificationChanged,
+            object: nil, queue: nil) { _ in
+                self.chatTable.reloadData()
         }
-        incomingMsgObserver = nc.addObserver(forName: dcNotificationIncoming,
-                                             object: nil, queue: nil) { _ in
-                                                self.chatTable.reloadData()
+        incomingMsgObserver = nc.addObserver(
+            forName: dcNotificationIncoming,
+            object: nil, queue: nil) { _ in
+                self.chatTable.reloadData()
         }
-        viewChatObserver = nc.addObserver(forName: dcNotificationViewChat, object: nil, queue: nil) { notification in
+        viewChatObserver = nc.addObserver(
+        forName: dcNotificationViewChat, object: nil, queue: nil) { notification in
             if let chatId = notification.userInfo?["chat_id"] as? Int {
                 self.coordinator?.showChat(chatId: chatId)
             }
@@ -154,7 +157,6 @@ extension ChatListController: UITableViewDataSource, UITableViewDelegate {
         return viewModel.numberOfSections
     }
 
-
     func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
           return viewModel.numberOfRowsIn(section: section)
     }