It would be nice if you could search for messages within conversations, similar to the search feature for the contact list.
I posted a Bounty for this feature.
Would this be searching for a message within a specific conversation or searching through all conversations?
I would like to be able to search within a specific conversation. When looking for some message(s), I usually remember who I talked to.
:+1:
Wow, that's a lot of code in ConversationsActivity :) I will have a look, but not promise to implement
Hmm.
As I understand, the problem is with XEP-0313.
withtext), but I have no idea how to check if current server supports it What should Conversations do if withtext is unavailable?
What do you think?
Ejabberd mod_mam supports fetching messages with specific text (
withtext), but I have no idea how to check if current server supports it
The available form fields can be queried, but unfortunately, ejabberd doesn't support such form requests and won't support them in the upcoming 16.01 release. They will most probably be supported in the following release, though.
However, the real problem is that the withtext name is not standardized, and I'm not quite sure what to do about that.
What should Conversations do if
withtextis unavailable?
I'd say it should fall back to just searching local messages.
@derlaft the account settings -> account -> "server info" displays whether XEP-0313 is available, maybe you could use that?
I'm for "search local messages" as a fallback. (Also if there's no network connection)
So one idea would be: Perform a local search. If that doesn't yield enough results, check whether the server offers a withtext search, and use that to get more results. The withtext name could be replaced once another name is standardized (this has been suggested in the past). I could provide an account to test the withtext feature if that helps.
However, I'm not sure this is really worth the hassle. Server-side search won't work for OMEMO-encrypted messages, for example. So personally, I'd actually be fine with having only local search implemented.
+1 for "search local messages"
Would this be searching for a message within a specific conversation or searching through all conversations?
That would be amazing too and also would deal with the non-space in the chat menu.
For chat search it could be an option to press the conversation and get a menu that allowed us to "search locally".
I also need a feature "search locally", because I have a lot of chat history saved on my phone and it's hard to find a message with a certain keyword.
Any news on the local message search? Is it hard to implement?
It would be really cool to have this feature. Would be a nice task for GSoC, wouldn't it?
And how does that work? I found only this in the changelog which means nothing to me:
Version 1.12.3
start typing in StartConversationsActivity to search
Search messages is not implemented.
The changelog talks about contact search.
Is the Bounty official for this feature? I mean, if we get the 200$ goal is it sure that we can get this feature (a chat searcher) on Conversations for real?
Either https://github.com/siacs/Conversations/pull/2446 or someone could port the one from Pix-Art
or someone could port the one from Pix-Art
Judging from the screen shots I've seen, Pix-Art added this as a new feature from scratch. Wouldn't it make more sense to re-use the existing contact/groupchat search (at least UI-wise but presumably also code-wise)?
Implementing this 禄properly芦 is fairly complicated on multiple levels. It has become a bit easier due to the UI refactor in 2.0 though.
(The UI in terms of how the search bar looks like is probably rather insignificant compared to the rest)
In any case message search has finally made it on my internal TODO list after Berlin. Not giving any ETAs but it is on there.
@iNPUTmice Since 2.2.0-beta offers a simple message search, which already works pretty good is quiet fast,
it would be great if you could also jump to the message in the history by clicking on a search result (and to be able to go back to the message search again). :-)
It would also be great to search only messages from a single contact instead from all.
This has been implemented in 2.2.0 which is available on F-Droid and rolling out on Google Play right now.
Most helpful comment
Implementing this 禄properly芦 is fairly complicated on multiple levels. It has become a bit easier due to the UI refactor in 2.0 though.
(The UI in terms of how the search bar looks like is probably rather insignificant compared to the rest)
In any case message search has finally made it on my internal TODO list after Berlin. Not giving any ETAs but it is on there.