Skip to content

Commit

Permalink
adding an error message marker to help group messages via classes
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Oct 28, 2024
1 parent db4346e commit ae7f762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/src/views/chat/messages/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class Messages extends MessagesBase {
this.removeMessageOnError();
const text = this.getPermittedMessage(message) || this._errorMessageOverrides?.[type]
|| this._errorMessageOverrides?.default || 'Error, please try again.';
const messageElements = this.createMessageElementsOnOrientation(text, '', isTop);
const messageElements = this.createMessageElementsOnOrientation(text, 'error', isTop);
MessageUtils.hideRoleElements(this.messageElementRefs, !!this._avatars, !!this._names);
const {bubbleElement, outerContainer} = messageElements;
bubbleElement.classList.add('error-message-text');
Expand Down

0 comments on commit ae7f762

Please sign in to comment.