Open theanhoo opened 4 years ago
Hi @theanhoo, thanks for contacting us.
It's hard to say if chat state notifications are the root cause of the full offline storage. The code responsible for storing offline messages tries to filter out chat state notifications but if the message stanza contains some other elements, other than just the chat state notification it may happen that such a stanza goes into the archive.
I suggest taking a look at all the messages which are in the full offline storage, you can do it in MongooseIM shell (mongooseimctl debug
) by calling doing a call similar to the one:
mod_offline_backend:fetch_messages(<<"username">>, <<"the.domain.com">>).
Of course, username
and the.domain.com
from my example needs to be replaced with correct values for a user you know has full offline storage.
MongooseIM version: 3.5.0 Installed from: source Erlang/OTP version: 20
Does MongooseIM (3.5.0) keep chat state notifications in the offline message queue? I kept getting this:
Chat state notifications seem to causing the offline message queue to fill up really quick. Is there a way to turn this off in _modoffline using _unless_chatstate?
Many thanks in advance.