Switch from Converse v10.1.6 to upstream (unreleased v11):

* various WIP to change the Converse version
This commit is contained in:
John Livingston
2024-07-11 17:53:50 +02:00
parent 9679aec739
commit 51b603c894
28 changed files with 38 additions and 32 deletions

View File

@ -97,6 +97,7 @@ function defaultConverseParams (
pruning_behavior: 'unscrolled',
colorize_username: true,
send_chat_markers: [],
reuse_scram_keys: false, // for now we don't use this.
// This is a specific settings, that is used in ConverseJS customization, to force avatars loading in readonly mode.
livechat_load_all_vcards: !!forceReadonly,

View File

@ -114,6 +114,11 @@ export const livechatSpecificsPlugin = {
// We are probably on a dev instance, so we will add _converse in window:
(window as any)._livechatConverse = _converse
}
// Temporary Fix, because v11 removes some constants from _converse.
// TODO: remove this line, and replace by something else.
// Waiting for response to https://github.com/conversejs/converse.js/issues/3440
_converse.CHATROOMS_TYPE = 'chatroom'
},
overrides: {
ChatRoom: {