Ver código fonte

improve readability

cyberta 4 anos atrás
pai
commit
3c62ea5aa6
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      deltachat-ios/Controller/ChatListController.swift

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

@@ -372,7 +372,11 @@ class ChatListController: UITableViewController {
         // check if the timer is not yet started
         stopTimer()
         timer = Timer.scheduledTimer(withTimeInterval: 60, repeats: true) { [weak self] _ in
-            guard let self = self, let appDelegate = UIApplication.shared.delegate as? AppDelegate else { return }
+            
+            guard let self = self,
+                  let appDelegate = UIApplication.shared.delegate as? AppDelegate
+            else { return }
+            
             if appDelegate.appIsInForeground() {
                 self.refreshInBg()
             } else {