conversejs / converse.js

Web-based XMPP/Jabber chat client written in JavaScript
http://conversejs.org
Mozilla Public License 2.0
3.08k stars 772 forks source link

Search mechanism for messages #1308

Open ilulissat opened 6 years ago

ilulissat commented 6 years ago

In mattermost/Slack, they is some feature, i would like to see in a modern "team" oriented xmpp client One is search mecanism. In Slack/Mattermost, it's easy to search in message sended. https://docs.mattermost.com/help/getting-started/searching.html?highlight=search I think this can now be achieved with MAM mecanism. One nice thing to do with this, is to have specific button to access to all last mention (all message explicly mentionning you will be search in one click)

I'm not sure about ui, but sidebar mecanism in Mattermost for search is nice.

--- Want to back this issue? **[Post a bounty on it!](https://app.bountysource.com/issues/65454513-search-mechanism-for-messages?utm_campaign=plugin&utm_content=tracker%2F194169&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://app.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F194169&utm_medium=issues&utm_source=github).
jcbrand commented 6 years ago

I think this can now be achieved with MAM mecanism.

AFAIK MAM makes allowance for it, but server support is still required and I don't know of a server that supports message text search via MAM.

Hopefully we can get a server that supports it, then we can add support for it to Converse.

fingertips-solutions commented 5 years ago

we are really looking for this feature... we want to search chat messages or chat groups...

about mentions can we sort groups by latest mention ?

jcbrand commented 5 years ago

we are really looking for this feature... we want to search chat messages or chat groups...

Then consider paying for it to be developed.

about mentions can we sort groups by latest mention

Not out of the box, but it's a requested feature.

alexanderadam commented 5 years ago

@ilulissat the same discussion was held in Conversations and an important point was mentioned: even if your server and converse support it you won't be able to search for encrypted conversations.

Maybe, for now, a chat bot would fix your issue for now. Maybe something like batyr. I didn't test it though and I don't know whether there are better alternatives.

I don't know of a server that supports message text search via MAM.

Doesn't ejabberd support MAM / XEP-0313?

PS: now that converse.js supports persisting data in IndexedDB it would be great to have a search that (optionally) persists messages in it and make them searchable. This way even a local search of OMEMO message might be realistically (if there would be an option to unencrypt and persist messages in the IndexedDB). PPS: the idea of an export would probably also help to reimport (and maybe fill IndexedDB) & to search "locally" available messages. PPPS: It should be obvious but the search also would be useful in case a MAM history browser will be implemented one day.

licaon-kter commented 5 years ago

@alexanderadam there's the plugin, but https://github.com/conversejs/community-plugins/issues/9