Skip to content

Commit

Permalink
Fix channel search view by refreshing the view state in both did chan…
Browse files Browse the repository at this point in the history
…ge channels and state delegates (delegate order has changed) (#3320)
  • Loading branch information
laevandus committed Jul 19, 2024
1 parent b6e36e3 commit 88d19e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ open class ChatChannelListSearchVC: ChatChannelListVC, UISearchResultsUpdating {

// MARK: - State Handling

override open func controller(_ controller: DataController, didChangeState state: DataController.State) {
switch state {
override open func handleStateChanges(_ newState: DataController.State) {
switch newState {
case .initialized, .localDataFetched:
if hasEmptyResults {
loadingIndicator.startAnimating()
Expand Down

0 comments on commit 88d19e0

Please sign in to comment.