Skip to content

Commit 4f486a8

Browse files
committed
[trello.com/c/aZtAfZ44] remove extra if
1 parent 901ae1f commit 4f486a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Adamant/Modules/Chat/View/ChatViewController.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,7 @@ final class ChatViewController: MessagesViewController {
164164
super.viewDidAppear(animated)
165165
defer {
166166
state.isFirstTimeViewAppeared = true
167-
if state.isViewDissappeared == true {
168-
state.isViewDissappeared.toggle()
169-
}
167+
state.isViewDissappeared = false
170168
updateUnreadMessages()
171169
}
172170
inputBar.isUserInteractionEnabled = true

0 commit comments

Comments
 (0)