Project

General

Profile

How to Store and Retrieve message statuses

Mauricio Giacomello
Added about 2 years ago

Hi Tigase team,

Here at work we're under development of a chat solution based on XMPP and we decided to go with Tigase for our backend, together with the Message Archive Plugin and Message Delivery Receipts.

We're wondering how we could solve the problem where two users want to retrieve the status of the messages (sent or delivered) once they log off and log back in.

We know that this is doable with 'Message Delivery Receipts', however, only if both users are online and that this is information is not persisted; as far as we know.

Thanks in advance,

Mauricio Giacomello

Sr. QA | Orion Health

Auckland | New Zealand


Replies (4)

Added by Wojciech Kapcia TigaseTeam about 2 years ago

Mauricio Giacomello wrote:

We know that this is doable with 'Message Delivery Receipts', however, only if both users are online and that this is information is not persisted; as far as we know.

Tigase Message Archiving component allows to define custom paths so you can store any defined stanza, hence it will be persisted, see Saving Options

Added by William Lee about 2 years ago

Wojciech Kapcia wrote:

Tigase Message Archiving component allows to define custom paths so you can store any defined stanza, hence it will be persisted, see Saving Options

Having a look at this, it seems like we can store the Delivery Receipts in the Message Archiving table but I'm not sure how we could match the receipt to the message it was for. We could look through the ID in the stanza but that seems like a lengthy process. What are the other options?

Added by Wojciech Kapcia TigaseTeam about 2 years ago

Out of the box - your only option is to use the IDs (most likely using Support for quering messages or collections by part of body of message) however it's not that efficient. Alternatively, you would need to extend Message Archiving component to accommodate needed functionality.

Added by Mauricio Giacomello about 2 years ago

Thanks for the reply, Wojciech Kapcia.

We're going forward with extending the message archiving plugin to store the status and also to retrieve it with 0136 ().

Best regards,

Mauricio Giacomello

Sr. QA | Orion Health

Auckland | New Zealand

    (1-4/4)