8e1c3e47df
Remove brittle code that uses `querySelector` to get the rooms list model. This code was causing a TypeError due to a race condition.
24 lines
564 B
JavaScript
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 () { }
|
|
});
|