Closed cmeng-git closed 1 year ago
- It is found that mod__mam#assume_mam_usage: true, always override mod_offline#use_mam_for_storage: false. I believe this is intended implementation.
I have a recent Erlang, and can't compile ejabberd 20.12 now. But I tried with ejabberd 23.01, and this is what I see:
Have upgraded aTalk test server to ejabberd 23.01. Yes, it works for the offline messages; it is also independent of the client MAM enable state i.e. set MAM default to always or never.
Other observations: If the recipient has set up two devices for the same account/Jid but with different resources. Found that ejabberd server only send the offline messages to the very first device that goes online. i.e. the same offline messages will not deliver to the second device that goes online after that.
only send the offline messages to the very first device that goes online
Think this is an Offline spec limitation, and one of the reasons why MAM was needed.
Thanks for the clarification. Yes, aTalk is able to receive the offline messages via mamQuery with no problem.
Hi, are any of those doubts still relevant? Otherwise, can this issue get closed?
Will close it.
@
All issues closed
Before creating a ticket, please consider if this should fit the discussion forum better: https://github.com/processone/ejabberd/discussions
Environment
Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml
Errors from error.log/crash.log
No errors
Bug description / Features Clarifications
ejabberd configuration setting for mod_mam and mod_offline are shown as above.
It is found that mod__mam#assume_mam_usage: true, always override mod_offline#use_mam_for_storage: false. I believe this is intended implementation.
With mod__mam#assume_mam_usage: true. aTalk implementation allows user to disable mam on server via the following attached stanzas. However this created a problem, as no further offline messages are sent to this user, since all the offline messages are not saved in mam archive db. Should ejabberd still consider 'XEP-0160: Best Practices for Handling Offline Messages' implementation under this case?
After changing mod__mam#assume_mam_usage: false; Found that ejabberd still not sending the offline messages when user goes online. The offline messages can only be retrieved via mamQuery.
Correction to #3: This applies to CC messages only. Normal offline messages are sent by ejabberd server as expected.