converse.js icon indicating copy to clipboard operation
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.

Open SilverYoCha opened this issue 3 years ago • 0 comments

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 :

  1. Open ConverseJs with a user account
  2. Open a chat box and converse into it
  3. Close the chat box
  4. 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
        });

SilverYoCha avatar Jun 06 '22 10:06 SilverYoCha