perf: 对话支持拼音搜索

This commit is contained in:
kuaifan
2022-07-19 16:14:44 +08:00
parent 5f50fc7b3b
commit 67e2ec4093
3 changed files with 10 additions and 7 deletions

View File

@@ -136,6 +136,7 @@ class WebSocketDialog extends AbstractModel
$this->has_file = $msgBuilder->clone()->whereMtype('file')->exists();
$this->has_link = $msgBuilder->clone()->whereLink(1)->exists();
}
$this->name_py = Base::cn2pinyin($this->name);
return $this;
}