discourse/plugins/chat
Joffrey JAFFEUX 55ef2d0698
FIX: auto fill was not happening on first load (#21809)
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
2023-05-29 17:34:44 +02:00
..
app FIX: auto fill was not happening on first load (#21809) 2023-05-29 17:34:44 +02:00
assets FIX: auto fill was not happening on first load (#21809) 2023-05-29 17:34:44 +02:00
config DEV: Remove old ChatController routes for messages & lookup (#21723) 2023-05-29 09:37:10 +02:00
db DEV: Create UserChatThreadMembership table and model (#21481) 2023-05-10 17:19:48 +02:00
lib DEV: extract more logic into ParsedMentions class (#21729) 2023-05-25 15:41:22 +04:00
public
spec FIX: auto fill was not happening on first load (#21809) 2023-05-29 17:34:44 +02:00
test/javascripts FEATURE: Apply hashtag styles to autocomplete (#21731) 2023-05-25 09:38:12 +02:00
plugin.rb FIX: Chat NotificationLevels extension breaking in prod (#21484) 2023-05-10 18:46:06 +02:00
README.md DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00

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.