Skip to content

Offline messages lost when user refreshes the page or closes the tab #3734

Answered by badlop
akshaybande81 asked this question in Questions
Discussion options

You must be logged in to vote

I am suspecting the ejabberd clears the offline messages for anon users. But I can't find any mention of this online, am I missing something here?

Right, that's how it works:

  1. When the client logouts, ejabberd_auth_anonymous:unregister_connection gets called
  2. That function runs the "remove_user" hook
  3. mod_offline:remove_user removes the offline messages of that user

If that cleaning mechanism were not implemented, the database would get polluted with useless offline messages for anonymous accounts that nobody cares at all.

An anonymous account is a one-use and destroy account.

offline messages are lost when user refreshes the page or closes the tab.

Ok, in that scenario from a user per…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@licaon-kter
Comment options

Answer selected by akshaybande81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants