MongooseIM icon indicating copy to clipboard operation
MongooseIM copied to clipboard

Inbox entry still remaining after room is destroyed

Open hongyuan1306 opened this issue 6 years ago • 1 comments

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

hongyuan1306 avatar Oct 17 '19 02:10 hongyuan1306

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.

fen-pl avatar Oct 18 '19 08:10 fen-pl