Skip to content

Commit

Permalink
when there are multiple introductory messages there will now only be …
Browse files Browse the repository at this point in the history
…one avatar at the bottom
  • Loading branch information
OvidijusParsiunas committed Sep 20, 2024
1 parent 8a810f2 commit eedf28b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion component/src/views/chat/messages/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export class Messages extends MessagesBase {
if (serviceIO?.isWebModel()) introMessage ??= (serviceIO as WebModel).getIntroMessage(introMessage);
if (introMessage) {
if (Array.isArray(introMessage)) {
introMessage.forEach((intro) => {
introMessage.forEach((intro, index) => {
if (index !== 0) MessageUtils.hideRoleElements(this.messageElementRefs, !!this._avatars, !!this._names);
this.addIntroductoryMessage(intro);
});
} else {
Expand Down

0 comments on commit eedf28b

Please sign in to comment.