Explorar o código

add warning if timer was about to be executed in background

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
12d23ebe82
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      deltachat-ios/Chat/ChatViewController.swift

+ 2 - 0
deltachat-ios/Chat/ChatViewController.swift

@@ -286,6 +286,8 @@ class ChatViewController: UITableViewController {
                 if appDelegate.appIsInForeground() {
                     self.messageIds = self.getMessageIds()
                     self.reloadData()
+                } else {
+                    logger.warning("startTimer() must not be executed in background")
                 }
             }
         }