Skip to content

Commit 9c774aa

Browse files
authored
Prevent crash when hiding view (#37)
1 parent a5ed071 commit 9c774aa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

MessageViewController/MessageAutocompleteController.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ public final class MessageAutocompleteController: MessageTextViewListener {
8585
}
8686

8787
public final func show(_ doShow: Bool) {
88-
if doShow {
89-
tableView.reloadData()
90-
tableView.layoutIfNeeded()
91-
}
88+
tableView.reloadData()
89+
tableView.layoutIfNeeded()
9290
tableView.isHidden = !doShow
9391
border.isHidden = !doShow
9492
layoutDelegate?.needsLayout(controller: self)

0 commit comments

Comments
 (0)