diff --git a/src/app/components/main-chat/chat-content/chat-content.component.ts b/src/app/components/main-chat/chat-content/chat-content.component.ts index ed1704b..eb8f8e5 100644 --- a/src/app/components/main-chat/chat-content/chat-content.component.ts +++ b/src/app/components/main-chat/chat-content/chat-content.component.ts @@ -50,7 +50,9 @@ export class ChatContentComponent implements AfterViewInit { ) {} ngAfterViewInit() { - this.scrollToBottom(); + setTimeout(() => { + this.scrollToBottom(); + }, 0); } /**