From 11fe1455aa63d410d15385176ce7651cba15b4fc Mon Sep 17 00:00:00 2001 From: Ovidijus Parsiunas Date: Fri, 30 Aug 2024 15:57:53 +0100 Subject: [PATCH] ability to overwrite full loading history element html for small view --- component/src/views/chat/messages/history/loadingHistory.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/component/src/views/chat/messages/history/loadingHistory.ts b/component/src/views/chat/messages/history/loadingHistory.ts index 6d58edf46..5414fecc6 100644 --- a/component/src/views/chat/messages/history/loadingHistory.ts +++ b/component/src/views/chat/messages/history/loadingHistory.ts @@ -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; } } }