Skip to content

Commit

Permalink
removing ai avatar from the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Sep 21, 2024
1 parent eedf28b commit 57c950f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions component/src/views/chat/messages/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export class Messages extends MessagesBase {
const text = this.getPermittedMessage(message) || this._errorMessageOverrides?.[type]
|| this._errorMessageOverrides?.default || 'Error, please try again.';
const messageElements = this.createMessageElementsOnOrientation(text, '', isTop);
MessageUtils.hideRoleElements(this.messageElementRefs, !!this._avatars, !!this._names);
const {bubbleElement, outerContainer} = messageElements;
bubbleElement.classList.add('error-message-text');
this.renderText(bubbleElement, text);
Expand Down

0 comments on commit 57c950f

Please sign in to comment.