Эх сурвалжийг харах

add warning if timer was about to be executed in background

cyberta 4 жил өмнө
parent
commit
12d23ebe82

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

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