[mirotalksfu] - fix typo

هذا الالتزام موجود في:
Miroslav Pejic
2023-09-16 14:13:50 +02:00
الأصل 3f4b0b912e
التزام f7d866f224

عرض الملف

@@ -2888,10 +2888,7 @@ class RoomClient {
this.peer_name, this.peer_name,
); );
this.cleanMessage(); this.cleanMessage();
if (this.speechInMessages) { this.speechInMessages ? this.speechMessage(true, 'ChatGPT', completion) : this.sound('message');
this.speechMessage(true, 'ChatGPT', completion);
}
this.sound('message');
}.bind(this), }.bind(this),
) )
.catch((err) => { .catch((err) => {
@@ -2976,10 +2973,7 @@ class RoomClient {
if (!this.showChatOnMessage) { if (!this.showChatOnMessage) {
this.userLog('info', `💬 New message from: ${data.peer_name}`, 'top-end'); this.userLog('info', `💬 New message from: ${data.peer_name}`, 'top-end');
} }
if (this.speechInMessages) { this.speechInMessages ? this.speechMessage(true, data.peer_name, data.peer_msg) : this.sound('message');
this.speechMessage(true, data.peer_name, data.peer_msg);
}
this.sound('message');
} }
setMsgAvatar(avatar, peerName) { setMsgAvatar(avatar, peerName) {