Skip to content

Commit

Permalink
ability to overwrite full loading history element html for small view
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Aug 30, 2024
1 parent 1ec03f9 commit 11fe145
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions component/src/views/chat/messages/history/loadingHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export class LoadingHistory {
messageElements.outerContainer.classList.replace(LoadingHistory.FULL_VIEW_CLASS, LoadingHistory.SMALL_CLASS);
const styles = messages.messageStyles?.loading?.history?.small?.styles;
if (styles) LoadingHistory.apply(messages, messageElements, styles);
const html = messages.messageStyles?.loading?.history?.small?.html;
if (html) messageElements.bubbleElement.innerHTML = html;
}
}
}

0 comments on commit 11fe145

Please sign in to comment.