Fix #140:using ConverseJS prune_messages_above to purge old messages, keeping only last 100.

This commit is contained in:
John Livingston 2023-12-21 16:01:29 +01:00
parent e14c349ddf
commit 6d7a8199ae
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,8 @@
### Minor changes and fixes
* Updated spanish translations
* Updated spanish translations.
* ConverseJS: using `prune_messages_above` to purge old messages, keeping only last 100 (Fix #140).
## 8.0.3

View File

@ -75,7 +75,10 @@ function defaultConverseParams (
whitelisted_plugins: ['livechatWindowTitlePlugin', 'livechatViewerModePlugin', 'livechatDisconnectOnUnloadPlugin'],
show_retraction_warning: false, // No need to use this warning (except if we open to external clients?)
muc_show_info_messages: mucShowInfoMessages,
send_chat_state_notifications: false // don't send this for performance reason
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'
}
// TODO: params.clear_messages_on_reconnection = true when muc_mam will be available.