Emit message events on stream abortion
| @@ -3102,6 +3102,11 @@ class StreamingProcessor { | ||
| 3102 | 3102 | this.hideMessageButtons(this.messageId); |
| 3103 | 3103 | generatedPromptCache = ''; |
| 3104 | 3104 | 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 | + } | |
| 3105 | 3110 | } |
| 3106 | 3111 | |
| 3107 | 3112 | setFirstSwipe(messageId) { |