Jelajahi Sumber

unconditionally invalidate timer in stopTimer()

cyberta 4 tahun lalu
induk
melakukan
a12dbefbbd
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      deltachat-ios/Chat/ChatViewController.swift

+ 1 - 3
deltachat-ios/Chat/ChatViewController.swift

@@ -295,9 +295,7 @@ class ChatViewController: UITableViewController {
 
     private func stopTimer() {
         if let timer = timer {
-            if timer.isValid {
-                timer.invalidate()
-            }
+            timer.invalidate()
         }
         timer = nil
     }