Emit message events on stream abortion

This commit is contained in:
Cohee 2024-09-09 20:39:30 +03:00
parent 58238fe42b
commit 70450d7867

View File

@ -3102,6 +3102,11 @@ class StreamingProcessor {
this.hideMessageButtons(this.messageId);
generatedPromptCache = '';
unblockGeneration();
if (this.type !== 'swipe' && this.type !== 'impersonate') {
eventSource.emit(event_types.MESSAGE_RECEIVED, this.messageId);
eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, this.messageId);
}
}
setFirstSwipe(messageId) {