tigase / tigase-server

(M) Highly optimized, extremely modular and very flexible XMPP/Jabber server
https://tigase.net
GNU Affero General Public License v3.0
326 stars 106 forks source link

Retrieving number of unreaded messages, Inbox #29

Open zgilewski opened 4 years ago

zgilewski commented 4 years ago

Hi, in our project we have requirement for showing number of unreaded messages per each contact. During research we found that to achieve that we could use these extensions: https://xmpp.org/extensions/xep-0430.html https://xmpp.org/extensions/xep-0333.html Base on tigase documentation, xep-0333 is supported by tigase server, but not 0430. Is there any plan for supporting 0430 ? If not, then is there anyway to achieve this kind of funcionality ?

Thx.

woj-tek commented 4 years ago

We don't have immediate plan of adding support for 0430/Inbox, but as explained in recent issue https://github.com/tigase/tigase-server/issues/26 you can use XEP-0013: Flexible Offline Message Retrieval (which is in a way similar to Inbox)

zgilewski commented 4 years ago

There is small difference between offline messages and unreaded messages. When user is connected and send presence status, offline messages are delivered to him. But delivering messages is not the same as reading them. So next time when user will logs in, he will not get these messages using xep-0013 as they has been already delivered. So he will not have anymore information about number of unreaded messages (as offline messages has been already delivered). In this case, as I understand we need to somehow store information about unreaded message by ourselve, correct ?

woj-tek commented 4 years ago

In this case, as I understand we need to somehow store information about unreaded message by ourselve, correct ?

For the moment - yes. But considering that Tigase XMPP Server is open source you can contribute desired, missing functionality.