converse.js icon indicating copy to clipboard operation
converse.js copied to clipboard

Messages are not loaded from archive if there is no scrollbar

Open anyuta1166 opened this issue 3 years ago • 0 comments

Describe the bug Messages are not loaded from archive if there is no scrollbar

To Reproduce Steps to reproduce the behavior:

  1. Open a chat with a contact
  2. Scroll up to load previous messages from archive

Expected behavior Previous messages are loaded from archive

Actual behavior - messages are not loaded from archive

Screenshots When you open a chat with a contact, last few messages are loaded. All previous messages should be loaded by scrolling up.

But scrolling up doesn't work if the amount of last messages is not enough for scrollbar to appear.

conversejs-1

If I resize the browser window until the scrollbar appears then scrolling up starts working and previous messages are loaded successfully.

conversejs-2

Environment (please complete the following information):

  • Desktop
  • Firefox
  • Converse.js version 8.0.1

Additional context

The setting archived_messages_page_size is the default (50). The number of actually displayed messages is lower because some of the messages are delivery reports and calls.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

anyuta1166 avatar Sep 11 '21 17:09 anyuta1166