no message

This commit is contained in:
kuaifan
2022-07-01 16:27:13 +08:00
parent a9950a4365
commit 08883ce558
2 changed files with 16 additions and 3 deletions

View File

@@ -121,7 +121,7 @@ class WebSocketDialog extends AbstractModel
}
if ($hasData === true) {
$msgBuilder = WebSocketDialogMsg::whereDialogId($this->id);
$this->has_tag = $msgBuilder->clone()->where('tag', '>', 0)->exists();
$this->has_tag = $msgBuilder->clone()->whereMtype('tag')->exists();
$this->has_image = $msgBuilder->clone()->whereMtype('image')->exists();
$this->has_file = $msgBuilder->clone()->whereMtype('file')->exists();
$this->has_link = $msgBuilder->clone()->whereLink(1)->exists();