Hey,
I´m using MAM messages in my Android app and I want to send a response to a message sender, if the recipient reached the message.
If both chat partners are online, the delivery response function is working fine.
But if the message is loaded from the MAM, the delivery response doesn´t get triggered.
For this case I want to send the response manually, but I don´t know how to do it.
I don’t think that you should do that, as the requestor of the receipt possibly already has forgotten about it, or even worse, that he considers the receipt for another message because he re-used the stanza ID.
But if you really want to do it, the logic is simple
Okay, but this does not work.
It seems that this is not working for messages which are loaded from the MAM, because from the OfflineMessageManager it works well.
Okay, I thought that its working like to receive the message from the OfflineMessageManager.
So in this case, the solution, to send the response manually, should not run into problems?
Have a look at https://xmpp.org/extensions/xep-0013.html, xep13 offline messages are delivered in line like live messages. That triggers the deliver receipts manager automatism. Unlike xep313 messages, which are wrapped in a forwarded.
None problems besides the one I mentioned and that you should ensure to not ack a message which already got a receipt. Again, I personally would possibly not go down that route.
İm not able to send receipts for group chats. İts working fine in private chats, but the mesagges i recive through mucs do not send automatic receipts to server. İs it the case for muc messages in smack or am i missing something?