Reaction search: fix missed update

If we throttle and type fast, we don't get the last update sometimes.
This actually also applies to emoji search results, but becomes more
important for freeform reactions.

Change-Id: I0bb515cd90c06361e7dd5d2c248eac495dd5bd63
This commit is contained in:
SpiritCroc 2022-05-13 22:54:47 +02:00
parent 3dbbed6489
commit 3201c629c4
2 changed files with 2 additions and 2 deletions

View file

@ -168,7 +168,7 @@ class EmojiReactionPickerActivity : VectorBaseActivity<ActivityEmojiReactionPick
}
searchView.queryTextChanges()
.throttleFirst(600)
//.throttleFirst(600)
.onEach { query ->
onQueryText(query.toString())
}

View file

@ -59,7 +59,7 @@ class EmojiSearchResultController @Inject constructor(
keywords = listOf(stringProvider.getString(R.string.freeform_reaction_summary))
)
emojiSearchResultItem {
id("de.spiritcroc.riotx.freeform-reaction-is-somebody-really-caring-about-this-key-lol")
id("de.spiritcroc.riotx.freeform-reaction.${data.query}")
emojiItem(freeformReaction)
emojiTypeFace(host.emojiTypeface)
currentQuery(data.query)