-
-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve search for chat messages #4433
Comments
@Ivansss @SystemKeeper does iOS use the chatmessages/chatblocks from DB at all for this or is it completely independent (=not persistent)? |
At this moment on Talk iOS, only global (in all conversations) message search can be done from the conversations list view. |
So the idea here is to implement this with jetpack compose (to already have message viewholders / recycler /... migrated before applying it to the main chat someday) @rapterjet2004 As a first step, please first have a close look at https://github.com/android/compose-samples/tree/main/Jetchat and look at implementations of other chat apps |
I am not sure if the issue I am having is what is being discussed here or not. On the Android app when I search I get a list of messages that contain the word. When I select the displayed message I am taken to the latest message in my current conversation which is not what I am expecting. On the Android app shouldn't the behaviour be the same as what I see on the Win Desktop app? I assume this thread is based on this one: Message from search is not shown in chat #3527 The Search on the win desktop app is also a little strange as there are 3 search locations which are all different. The one on the left (most likely to be used) searches for conversations and users/groups/teams. This search does not search messages. |
The message search was never implemented sufficiently.
A user does not always get the result he is looking for, i.e. the message he is looking for is sometimes not found in the chat.
The overview will show the matched results, but when clicking on a result it depends if the message is available in the adapter.
For older messages this is most likely not the case (one would have to scroll very often upwards before searching to have a chance it's included in the adapter), so only the last messages of the chat are shown instead to show the searched message.
Loading all messages into the adapter at once is not an option for performance reasons. Same for doing it in a loop. (It may differ if the message is found in the database for the latest chatblock. Then it might be an option to load a lot of data into the adapter, as it's quicker than doing online requests in a loop. But this might also have limitations).
Talk iOS seems to have the same challenge. The workaround there is to show a snippet of the chat in a search window. So there the searched message is shown and maybe 30(?) messages are shown before and after it, without being able to scroll further.
For talk android this would mean that chatblocks may be created that are not connected to the latest chatblock. This shouldn't be a problem when there is no option to scroll in the search result window.
We should implement the same for android talk or discuss if there are other ways to solve it.
The text was updated successfully, but these errors were encountered: