Proper way to purge chats

Solved NodeBB Development
  • Plugin & Theme Dev

    Hi guys,

    After migration to NodeBB I have found that there is a problem with chats.

    Could you recommend proper way of purging chats? So I will take into account all edge-cases in process: reseting counters, etc.


  • Plugin & Theme Dev

    I will answer myself on question. 😉

    You need to remove these documents (_key pattern) from objects collection:

    • message:8
    • messages:uid:8:to:16
    • uid:1:chats

    * where numbers are identifiers

    Or if you don't want to do it manually, you could wait for future NodeBB Utils plugin:

    Screen Shot 2015-10-14 at 11.55.39 PM.png

Suggested Topics

| | | |