Selaa lähdekoodia

mini refactoring - save one line of code

cyberta 3 vuotta sitten
vanhempi
commit
35a5d925b5
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -526,12 +526,11 @@ class ChatViewController: UITableViewController {
     }
     
     func handleUserVisibility(isVisible: Bool) {
+        isVisibleToUser = isVisible
         if isVisible {
-            isVisibleToUser = true
             startTimer()
             markSeenMessagesInVisibleArea()
         } else {
-            isVisibleToUser = false
             stopTimer()
             draft.save(context: dcContext)
         }