2024-05-23 09:42:14 +00:00
|
|
|
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2024-09-09 18:01:25 +00:00
|
|
|
// FIXME: @stylistic/indent is buggy with strings literrals.
|
|
|
|
/* eslint-disable @stylistic/indent */
|
|
|
|
|
2024-07-11 15:53:50 +00:00
|
|
|
import { api } from '@converse/headless'
|
2024-05-11 15:37:20 +00:00
|
|
|
import tplMUCChatarea from '../../src/plugins/muc-views/templates/muc-chatarea.js'
|
|
|
|
import { html } from 'lit'
|
|
|
|
|
|
|
|
export default (o) => {
|
|
|
|
return html`
|
|
|
|
${
|
2024-05-12 14:02:13 +00:00
|
|
|
o?.model && api.settings.get('livechat_task_app_enabled')
|
2024-05-11 15:37:20 +00:00
|
|
|
? html`<livechat-converse-muc-task-app .model=${o.model}></livechat-converse-muc-task-app>`
|
|
|
|
: ''
|
|
|
|
}
|
2024-07-29 16:58:02 +00:00
|
|
|
${
|
|
|
|
o?.model && api.settings.get('livechat_note_app_enabled')
|
|
|
|
? html`<livechat-converse-muc-note-app .model=${o.model}></livechat-converse-muc-note-app>`
|
|
|
|
: ''
|
|
|
|
}
|
2024-08-01 16:58:25 +00:00
|
|
|
${
|
|
|
|
o?.model && api.settings.get('livechat_mam_search_app_enabled')
|
|
|
|
? html`<livechat-converse-muc-mam-search-app .model=${o.model}></livechat-converse-muc-mam-search-app>`
|
|
|
|
: ''
|
|
|
|
}
|
2024-05-11 15:37:20 +00:00
|
|
|
${tplMUCChatarea(o)}`
|
|
|
|
}
|