MOBILE-2431 chat: Scroll to bottom when receiving a beep
parent
e286e93918
commit
cbd1553438
|
@ -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());
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue