mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 07:28:58 +08:00

This commit attempts to fix the case where the messages loaded initially don't fill the screen. It would prevent user to scroll and as a result to load more. There are multiple fixes in this commit: - the main fix is removing this code which was preventing the actual fill: ```javascript // prevents an edge case where user clicks bottom arrow // just after scrolling to top if (loadingPast && this.#isAtBottom()) { return; } ``` - ensures we always give a page site to the `chatApi.channel(...)` call if we have one, in the current state when `fetchFromLastRead` was `true` we would not set `args.page_size` - ensures the `query_paginated_messages` is having a valid page size, which is not nil and not > `MAX_PAGE_SIZE` - write a spec for the autofill, it was a challenging spec to write but it should give us the confidence we need here
This plugin is still in active development and may change frequently
Documentation
The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.
For user documentation, see Discourse Chat.
For developer documentation, see Discourse Documentation.