A platform for community discussion. Free, open, simple.
FIX: when using arrow to bottom fetch from newest (#22860)
Joffrey JAFFEUX891aabde19e7
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel.js b/plugins/chat/assets/javascripts/discourse/components/chat-channel.jsindex f261cf52002..8aeb71f6f87 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-channel.js+++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel.js@@ -427,9 +427,8 @@ export default class ChatChannel extends Component {@actionscrollToLatestMessage() {if (this.messagesLoader.canLoadMoreFuture) {- this.fetchMessages({ fetch_from_last_read: true });+ this.fetchMessages();} else if (this.messagesManager.messages.length > 0) {- this._ignoreNextScroll = true;this.scrollToBottom(this.scrollable);}}