Custom settings livechat_load_all_vcards for the readonly mode

This commit is contained in:
John Livingston 2024-02-07 12:22:40 +01:00
parent 91b44497bd
commit a8e3524a94
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
3 changed files with 7 additions and 2 deletions

View File

@ -19,6 +19,7 @@
* force history pruning, even if messages keep coming (Fix #140)
* don't load all vCards when right menu is not visible (Fix #106)
* Changing the default avatar to minimize blinking effect when a user sends his first message
* Custom settings livechat_load_all_vcards for the readonly mode
* Prosody: disabling message carbons for anonymous users (See #295)
* Peertube users avatars optimization (Fix #303):
* avoid multiple parallel request to load same avatar from Peertube

View File

@ -19,7 +19,8 @@ CONVERSE_COMMIT=""
# This version already includes following changes that will not be merged in ConverseJS upstream:
# - Don't load vCards for all room occupants when the right menu is closed
# - Changing the default avatar, for something very light (to mitigate blinking effect when vCards are loaded)
CONVERSE_COMMIT="9fff09f75a3f65a970506c3fd1796feaba552845"
# - Custom settings livechat_load_all_vcards for the readonly mode
CONVERSE_COMMIT="b6f9a82daf52d04434e75a7ab224cb525082d082"
CONVERSE_REPO="https://github.com/JohnXLivingston/converse.js"
rootdir="$(pwd)"

View File

@ -85,7 +85,10 @@ function defaultConverseParams (
send_chat_state_notifications: false, // don't send this for performance reason
prune_messages_above: 100, // only keep 100 message in history.
pruning_behavior: 'unscrolled'
pruning_behavior: 'unscrolled',
// This is a specific settings, that is used in ConverseJS customization, to force avatars loading in readonly mode.
livechat_load_all_vcards: !!forceReadonly
}
// TODO: params.clear_messages_on_reconnection = true when muc_mam will be available.