Skip to content

Commit

Permalink
fix: update message failed status
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanenkoStud committed Nov 20, 2023
1 parent e1f5fd7 commit 508636e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/kite-chat/src/kite-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ export class KiteChat {
}
const errorMessage = e.description || 'Unknown error.';
this.element?.appendMsg({text: `⛔️${errorMessage}`, status: MsgStatus.unknown});
this.update(e.messageId, {
status: MsgStatus.failed,
} as ContentMsg);
}

protected onDeliveryError(msg: MessageEvent<unknown>) {
Expand Down

0 comments on commit 508636e

Please sign in to comment.