Skip to content

Commit

Permalink
perf: 表情回复时更新对话列表
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Feb 14, 2025
1 parent afd0217 commit 9e4beaa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Models/WebSocketDialogMsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,12 @@ public function emojiMsg($symbol, $sender)
];
//
$dialog = WebSocketDialog::find($this->dialog_id);
$dialog?->pushMsg('update', $resData);
if ($dialog) {
$dialog->pushMsg('update', $resData);
WebSocketDialogUser::whereDialogId($dialog->id)->change([
'updated_at' => Carbon::now()->toDateTimeString('millisecond'),
]);
}
//
return Base::retSuccess('success', $resData);
}
Expand Down

0 comments on commit 9e4beaa

Please sign in to comment.