Skip to content

Commit

Permalink
Chat: Fix message group container
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Aug 30, 2024
1 parent 2d7156c commit d8e814c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ class MessageList extends Widget<MessageListOptions> {
}

_createMessageGroupComponent(items: Message[], userId: string | number | undefined): void {
const $messageGroup = $('<div>').appendTo(this._$content);
const scrollableContent = this._scrollable?.content();
const messageGroupContainer = scrollableContent || this._$content;

const $messageGroup = $('<div>').appendTo(messageGroupContainer);

const messageGroup = this._createComponent($messageGroup, MessageGroup, {
items,
Expand Down

0 comments on commit d8e814c

Please sign in to comment.