no message

This commit is contained in:
kuaifan
2022-07-01 16:57:03 +08:00
parent 26628b1c89
commit 256143fd21
2 changed files with 31 additions and 1 deletions

View File

@@ -533,7 +533,7 @@ class WebSocketDialogMsg extends AbstractModel
$link = 1;
}
if (str_contains($msg['text'], '<img ')) {
$mtype = 'image';
$mtype = str_contains($msg['text'], '"emoticon"') ? 'emoticon' : 'image';
}
} elseif ($type === 'file') {
if (in_array($msg['ext'], ['jpg', 'jpeg', 'png', 'gif'])) {