We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0041aa1 commit d299e47Copy full SHA for d299e47
src/components/chat-item/chat-item-card.ts
@@ -447,6 +447,8 @@ export class ChatItemCard {
447
}
448
449
if (this.props.chatItem.header.status != null) {
450
+ // Remove existing status before adding new one
451
+ this.cardHeader?.querySelector('.mynah-chat-item-card-header-status')?.remove();
452
this.cardHeader?.insertAdjacentElement(this.props.chatItem.header.status.position === 'left' ? 'afterbegin' : 'beforeend', DomBuilder.getInstance().build({
453
type: 'span',
454
classNames: [ 'mynah-chat-item-card-header-status', `status-${this.props.chatItem.header.status.status ?? 'default'}` ],
0 commit comments