074e688ed8
* #144: moderator notes WIP, * plugin size: adding an API, * refactoring the code from the task app, to create a new MUC App system.
23 lines
727 B
JavaScript
23 lines
727 B
JavaScript
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import { api } from '@converse/headless'
|
|
import tplMUCChatarea from '../../src/plugins/muc-views/templates/muc-chatarea.js'
|
|
import { html } from 'lit'
|
|
|
|
export default (o) => {
|
|
return html`
|
|
${
|
|
o?.model && api.settings.get('livechat_task_app_enabled')
|
|
? html`<livechat-converse-muc-task-app .model=${o.model}></livechat-converse-muc-task-app>`
|
|
: ''
|
|
}
|
|
${
|
|
o?.model && api.settings.get('livechat_note_app_enabled')
|
|
? html`<livechat-converse-muc-note-app .model=${o.model}></livechat-converse-muc-note-app>`
|
|
: ''
|
|
}
|
|
${tplMUCChatarea(o)}`
|
|
}
|