mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Reload search-results when entering the screen (IOS-196)
This commit is contained in:
parent
315d15b256
commit
7d8af4ef35
@ -48,6 +48,11 @@ extension SearchHistoryViewController {
|
||||
searchHistorySectionHeaderCollectionReusableViewDelegate: self
|
||||
)
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
let userID = authContext.mastodonAuthenticationBox.userID
|
||||
viewModel.items = (try? FileManager.default.searchItems(forUser: userID)) ?? []
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - UICollectionViewDelegate
|
||||
|
Loading…
x
Reference in New Issue
Block a user