• Hello, how to delete a global chat? I have them, up to 3 rooms.. I will add that my database is Redis.

    0_1541623138241_Zrzut ekranu z 2018-11-07 21-37-15.png

  • You have three global chat rooms? Do you know how this happened?

  • Yes, one when I had version 1.0.0 and it was not possible to delete it and I just installed update and it created new 3 chats, where only one of them could be deleted.

  • Do you have NodeBB running with multiple processes?

  • yes,

    2018-11-07T20:50:39.634Z [10504] - info: NodeBB Ready
    2018-11-07T20:50:39.638Z [10502] - info: NodeBB Ready
    2018-11-07T20:50:39.643Z [10504] - info: Enabling 'trust proxy'
    2018-11-07T20:50:39.649Z [10504] - info: NodeBB is now listening on:
    2018-11-07T20:50:39.651Z [10502] - info: Enabling 'trust proxy'
    2018-11-07T20:50:39.656Z [10502] - info: NodeBB is now listening on:
    2018-11-07T20:50:39.665Z [10501] - info: Routes added
    2018-11-07T20:50:39.667Z [10501] - info: NodeBB Ready
    2018-11-07T20:50:39.671Z [10501] - info: Enabling 'trust proxy'
    2018-11-07T20:50:39.674Z [10501] - info: NodeBB is now listening on:

  • Ah ok. I'll add a fix for multiple processes so it doesn't create a bunch of rooms when starting up.

    And I'll cook up a script to remove all of them for you.

  • @youhosi New Plugin version:

    [email protected]

    Fixes the multiple room creation bug.

    It also contains a script for purging chat rooms. First, you must get a list of chat room ID numbers you want to remove. Go to https://your.site/me/chats and then click on each chat room you wish to completely delete. The room ID number is the number at the end of the URL.

    You then want to open up a command line terminal and navigate to the main nodebb directory. The one with config.json, app.js, etc. Assuming the plugin is already installed, you then run:

    node node_modules/nodebb-plugin-global-chat/remove-chat-rooms [room IDs...]

    Where [room IDs...] is a space-delimited list of room ID numbers, like so:

    node node_modules/nodebb-plugin-global-chat/remove-chat-rooms 5 9 12

    This will delete those rooms forever. I strongly suggest you make a database backup before running this script.

  • @PitaJ said in Global Chat rooms.:

    node node_modules/nodebb-plugin-global-chat/remove-chat-rooms

    thanks, its working

Suggested Topics

| | | |