فهرست منبع

leave [weak self] as is; we can re-tweak that later

B. Petersen 4 سال پیش
والد
کامیت
0a0a72f1a0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -279,7 +279,7 @@ class ChatViewController: UITableViewController {
 
     private func startTimer() {
         stopTimer()
-        timer = Timer.scheduledTimer(withTimeInterval: 60, repeats: true) { _ in
+        timer = Timer.scheduledTimer(withTimeInterval: 60, repeats: true) { [weak self] _ in
             // reload table
             DispatchQueue.main.async { [weak self] in
                 guard let self = self,