Skip to content

A platform for community discussion. Free, open, simple.

FIX: Stop blocking auto scroll on iOS (#33129)

Chris Albertib1f5d2e4b9f3
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs
index ab565b4fe3d..d9116b1768f 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs
@@ -559,7 +559,7 @@ export default class ChatChannel extends Component {
message.manager = this.args.channel.messagesManager;
this.resetComposerMessage();
- if (!this.capabilities.isIOS && !this.messagesLoader.canLoadMoreFuture) {
+ if (!this.messagesLoader.canLoadMoreFuture) {
this.scrollToLatestMessage();
}
@@ -572,9 +572,7 @@ export default class ChatChannel extends Component {
...extractCurrentTopicInfo(this),
});
- if (!this.capabilities.isIOS) {
- this.scrollToLatestMessage();
- }
+ this.scrollToLatestMessage();
} catch (error) {
this._onSendError(message.id, error);
} finally {