esl / MongooseIM

MongooseIM is Erlang Solutions' robust, scalable and efficient XMPP server, aimed at large installations. Specifically designed for enterprise purposes, it is fault-tolerant and can utilise the resources of multiple clustered machines.
Other
1.67k stars 428 forks source link

Inbox entry still remaining after room is destroyed #2497

Open hongyuan1306 opened 5 years ago

hongyuan1306 commented 5 years ago

MongooseIM version: 3.4.0 Installed from: docker image Erlang/OTP version: (put the version)

I am using mod_inbox together with mod_muc_light with the following config:

  {mod_inbox, [
    {backend, rdbms},
    {groupchat, [muclight]},
    {aff_changes, false}
  ]},

I notice that when I delete a room via the REST MUC-light management API, the room is properly deleted, but all inbox entries belonging to the room remain unchanged.

Is there a way to clear all inbox items for the room when the room is destroyed? Since no one is able to chat in the room any more, I don't want to bother them with unread notification.

Thanks

fenek commented 5 years ago

Hi @hongyuan1306

Sadly it's not possible right now, but indeed these entries should either be removed or at least the unread count should be set to 0, to avoid unnecessary notifications. I'll add an item to our backlog to improve this behaviour.