converse.js
converse.js copied to clipboard
With a simple chat box, newest messages are not always fetched when setting 'clear_messages_on_reconnection' parameter to true.
With a simple chat box, newest messages are not always fetched when setting 'clear_messages_on_reconnection' parameter to true. When closing and opening again a chat box during a same session, blank space is displayed instead of messages.
To reproduce On my environment, this scenario is reproducible :
- Open ConverseJs with a user account
- Open a chat box and converse into it
- Close the chat box
- Open again the chat box No message is displayed.
Expected behaviour Messages (those into history and the newest) should be displayed.
Environment:
- Desktop / Mobile
- All browsers
- Converse.js (master branch and 9.1.1, not tried on other versions)
Additional context Functional ejabberd server.
Initialization options
converse.initialize({
'view_mode' : 'overlayed',
'i18n' : 'a language',
'assets_path' : '/myserver/chat/converse/',
'sounds_path' : '/myserver/chat/converse/',
'play_sounds' : false,
'bosh_service_url' : 'bosh url',
'allow_logout' : false,
'auto_login' : true,
'auto_reconnect' : true,
'jid' : 'a jid',
'clear_messages_on_reconnection' : true,
'default_domain' : 'a domain',
'domain_placeholder' : 'a domain',
'password' : 'a password',
'autocomplete_add_contact' : false,
'notification_icon' : 'aLogo.png',
'muc_domain' : 'conference.a.domain',
'locked_muc_domain' : 'hidden',
'muc_disable_slash_commands' : true,
'locked_muc_nickname' : true,
'nickname' : 'a nickname',
'auto_register_muc_nickname' : true,
'notify_all_room_messages' : true,
'auto_join_on_invite' : false,
'roster_groups' : false,
'allow_adhoc_commands' : false,
'allow_contact_removal' : false,
'allow_contact_requests' : false,
'allow_registration' : false,
'show_controlbox_by_default' : false,
'discover_connection_methods' : false
});