Merge branch 'dev' into ouoertheo/elevenlabstts1

This commit is contained in:
ouoertheo
2023-04-22 10:15:50 -05:00
committed by GitHub

View File

@@ -1259,7 +1259,7 @@ class StreamingProcessor {
setFirstSwipe(messageId) {
if (this.type !== 'swipe' && this.type !== 'impersonate') {
if (chat[messageId]['swipes'].length === 1 && chat[messageId]['swipe_id'] === 0) {
if (Array.isArray(chat[messageId]['swipes']) && chat[messageId]['swipes'].length === 1 && chat[messageId]['swipe_id'] === 0) {
chat[messageId]['swipes'][0] = chat[messageId]['mes'];
}
}