Skip to content

Commit a5a8269

Browse files
committed
Small fix.
1 parent 93b246e commit a5a8269

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/UI/User Story/Chat/Chat View Controller/ChatViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ open class ChatViewController: ViewController, UITableViewDataSource, UITableVie
128128
/// - scrollToBottom: scroll the table view to the bottom cell after refresh, if true
129129
/// - animated: scroll to the bottom cell animated, if true
130130
open func refreshTableView(scrollToBottom: Bool, animated: Bool) {
131+
guard let presenter = channelPresenter else {
132+
return
133+
}
134+
131135
items = presenter.items
132136
tableView.reloadData()
133137

0 commit comments

Comments
 (0)