Emit message events on stream abortion

70450d786765a4746eb1d5c3fbf262c95f3e0c87

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +5 -0Showing whitespace changes
public/script.js+5 -0
@@ -3102,6 +3102,11 @@ class StreamingProcessor {
31023102 this.hideMessageButtons(this.messageId);
31033103 generatedPromptCache = '';
31043104 unblockGeneration();
3105+
3106+ if (this.type !== 'swipe' && this.type !== 'impersonate') {
3107+ eventSource.emit(event_types.MESSAGE_RECEIVED, this.messageId);
3108+ eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, this.messageId);
3109+ }
31053110 }
31063111
31073112 setFirstSwipe(messageId) {