Răsfoiți Sursa

add warning if timer was about to be executed in background

cyberta 4 ani în urmă
părinte
comite
12d23ebe82
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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")
                 }
             }
         }