no message

This commit is contained in:
kuaifan
2021-06-06 01:38:40 +08:00
parent c6285c57c8
commit 4c51e52a30
15 changed files with 453 additions and 39 deletions

View File

@@ -99,6 +99,7 @@ class WebSocketDialogMsg extends AbstractModel
$msgRead = WebSocketDialogMsgRead::whereMsgId($this->id)->whereUserid($userid)->lockForUpdate()->first();
if (empty($msgRead)) {
$msgRead = WebSocketDialogMsgRead::createInstance([
'dialog_id' => $this->dialog_id,
'msg_id' => $this->id,
'userid' => $userid,
]);