Tweak search query thresholds

This commit is contained in:
MM20
2022-12-21 19:35:33 +01:00
parent 840aa9b4c4
commit 41a0157983
4 changed files with 8 additions and 5 deletions
@@ -63,6 +63,8 @@ internal class WikipediaRepositoryImpl(
httpClient.dispatcher.cancelAll()
}
if (query.length < 4) return@channelFlow
if (!::wikipediaService.isInitialized) return@channelFlow
if (query.isBlank()) return@channelFlow