...
 
Commits (2)
import 'https://unpkg.com/converse.js@5.0/dist/converse.min.js'; import 'https://cdn.happy-dev.fr/conversejs/dist/converse.min.js';
import 'https://unpkg.com/converse.js@5.0/dist/emojis.js'; import 'https://cdn.happy-dev.fr/conversejs/dist/emojis.js';
import { Helpers, store } from 'https://unpkg.com/@startinblox/core@0.9'; import { Helpers, store } from 'https://unpkg.com/@startinblox/core@0.9';
import { Sib } from "https://unpkg.com/@startinblox/core@0.9/dist/libs/Sib.js"; import { Sib } from "https://unpkg.com/@startinblox/core@0.9/dist/libs/Sib.js";
import { StoreMixin } from 'https://unpkg.com/@startinblox/core@0.9/dist/mixins/storeMixin.js'; import { StoreMixin } from 'https://unpkg.com/@startinblox/core@0.9/dist/mixins/storeMixin.js';
...@@ -46,7 +46,7 @@ export const SibChat = { ...@@ -46,7 +46,7 @@ export const SibChat = {
mode: "open" mode: "open"
}); });
this.element.shadowRoot.append(...Helpers.importCSS( this.element.shadowRoot.append(...Helpers.importCSS(
'https://unpkg.com/converse.js@5.0/dist/converse.css', 'https://cdn.happy-dev.fr/conversejs/dist/converse.min.css',
'https://unpkg.com/@startinblox/component-chat@0.4/themes/converse-hd.css' 'https://unpkg.com/@startinblox/component-chat@0.4/themes/converse-hd.css'
)); ));
if (window.converse_sib === undefined) { if (window.converse_sib === undefined) {
...@@ -212,6 +212,7 @@ export const SibChat = { ...@@ -212,6 +212,7 @@ export const SibChat = {
'jid': jabberID.toLowerCase(), 'jid': jabberID.toLowerCase(),
'locales_url': this.element.dataset.localesUrl, 'locales_url': this.element.dataset.localesUrl,
'message_archiving': 'always', 'message_archiving': 'always',
'message_archiving_timeout': 60000,
'muc_disable_slash_commands': true, 'muc_disable_slash_commands': true,
'muc_nickname_from_jid': true, 'muc_nickname_from_jid': true,
'muc_show_join_leave': false, 'muc_show_join_leave': false,
...@@ -223,7 +224,7 @@ export const SibChat = { ...@@ -223,7 +224,7 @@ export const SibChat = {
// 'use_system_emojis': false, // 'use_system_emojis': false,
// 'show_send_button': true, // 'show_send_button': true,
'singleton': true, 'singleton': true,
'sounds_path': 'https://unpkg.com/converse.js@5.0/sounds/', 'sounds_path': 'https://cdn.happy-dev.fr/conversejs/sounds/',
'view_mode': 'embedded', 'view_mode': 'embedded',
'visible_toolbar_buttons': { 'visible_toolbar_buttons': {
call: false, call: false,
......