Фикс: детерминированный роутинг PacketSearch на iOS без подмешивания фоновых результатов

This commit is contained in:
2026-03-28 21:07:05 +05:00
parent 5af28b68a8
commit e49d224e6a
13 changed files with 613 additions and 62 deletions

View File

@@ -34,8 +34,8 @@ final class ChatListViewModel: ObservableObject {
// MARK: - Init
init(searchDispatcher: SearchResultDispatching = LiveSearchResultDispatcher()) {
self.searchDispatcher = searchDispatcher
init(searchDispatcher: SearchResultDispatching? = nil) {
self.searchDispatcher = searchDispatcher ?? LiveSearchResultDispatcher()
configureRecentSearches()
setupSearchCallback()
}