perf: 优化阅读消息

This commit is contained in:
kuaifan
2023-03-04 15:58:31 +08:00
parent 883cd94a5e
commit 5c6fc6fe1a
5 changed files with 34 additions and 7 deletions

View File

@@ -71,6 +71,7 @@ class WebSocketDialog extends AbstractModel
$this->pinyin = Base::cn2pinyin($this->name);
$this->top_at = $this->top_at ?? $dialogUserFun('top_at');
$this->user_at = $this->user_at ?? $dialogUserFun('updated_at');
$this->user_ms = WebSocketDialogUser::userMs($this->user_at);
//
if (isset($this->search_msg_id)) {
// 最后消息 (搜索预览消息)