| 3103 | generatedPromptCache = ''; | 3103 | generatedPromptCache = ''; |
| 3104 | unblockGeneration(); | 3104 | unblockGeneration(); |
| 3105 | | 3105 | |
| 3106 | if (this.type !== 'swipe' && this.type !== 'impersonate') { | 3106 | const noEmitTypes = ['swipe', 'impersonate', 'continue']; |
| | 3107 | if (!noEmitTypes.includes(this.type)) { |
| 3107 | eventSource.emit(event_types.MESSAGE_RECEIVED, this.messageId); | 3108 | eventSource.emit(event_types.MESSAGE_RECEIVED, this.messageId); |
| 3108 | eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, this.messageId); | 3109 | eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, this.messageId); |
| 3109 | } | 3110 | } |