mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-30 12:05:46 +00:00
fix: jump to message in search fails for messages high up in timeline (#6714)
closeSearch() added onSearchValueChanged("") in d30dde5 (content filter
feature) which triggers async apiFindMessages — this clears the items
that openChat just loaded around the target and replaces them with
initial messages. Skip the reload when openAroundItemId is already set.
This commit is contained in:
@@ -753,7 +753,9 @@ fun ChatView(
|
||||
changeNtfsState = { enabled, currentValue -> toggleNotifications(chatRh, chatInfo, enabled, chatModel, currentValue) },
|
||||
onSearchValueChanged = onSearchValueChanged,
|
||||
closeSearch = {
|
||||
onSearchValueChanged("")
|
||||
if (chatModel.openAroundItemId.value == null) {
|
||||
onSearchValueChanged("")
|
||||
}
|
||||
showSearch.value = false
|
||||
searchText.value = ""
|
||||
contentFilter.value = null
|
||||
|
||||
Reference in New Issue
Block a user