diff --git a/src/addon/mod/chat/pages/chat/chat.ts b/src/addon/mod/chat/pages/chat/chat.ts index ba18844d4..082509e21 100644 --- a/src/addon/mod/chat/pages/chat/chat.ts +++ b/src/addon/mod/chat/pages/chat/chat.ts @@ -139,6 +139,10 @@ export class AddonModChatChatPage { return this.chatProvider.getMessagesUserData(messagesInfo.messages, this.courseId).then((messages) => { this.messages = this.messages.concat(messages); + if (messages.length) { + // New messages or beeps, scroll to bottom. + setTimeout(() => this.scrollToBottom()); + } }); }); }