xmpp.chapril.org-conversejs/src/plugins/roomslist/index.js
JC Brand 8e1c3e47df Improve how the muc_domain setting is populated via disco
Remove brittle code that uses `querySelector` to get the rooms list model.
This code was causing a TypeError due to a race condition.
2022-04-09 10:57:55 +02:00

24 lines
564 B
JavaScript

/**
* @description
* Converse.js plugin which shows a list of currently open
* rooms in the "Rooms Panel" of the ControlBox.
* @copyright 2022, the Converse.js contributors
* @license Mozilla Public License (MPLv2)
*/
import "@converse/headless/plugins/muc/index.js";
import './view.js';
import { converse } from "@converse/headless/core";
converse.plugins.add('converse-roomslist', {
dependencies: [
"converse-singleton",
"converse-controlbox",
"converse-muc",
"converse-bookmarks"
],
initialize () { }
});