mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-21 16:48:13 +00:00
no message
This commit is contained in:
parent
bf136c9b2f
commit
aa7d93e97e
@ -365,6 +365,11 @@ class DialogController extends AbstractController
|
|||||||
$list = $cloner->take($take)->get()->sortByDesc('id', SORT_NUMERIC)->values();
|
$list = $cloner->take($take)->get()->sortByDesc('id', SORT_NUMERIC)->values();
|
||||||
//
|
//
|
||||||
if ($list->isNotEmpty()) {
|
if ($list->isNotEmpty()) {
|
||||||
|
$list->transform(function (WebSocketDialogMsg $item) {
|
||||||
|
$item->next_id = 0;
|
||||||
|
$item->prev_id = 0;
|
||||||
|
return $item;
|
||||||
|
});
|
||||||
$first = $list->first();
|
$first = $list->first();
|
||||||
$first->next_id = intval($builder->clone()
|
$first->next_id = intval($builder->clone()
|
||||||
->where('web_socket_dialog_msgs.id', '>', $first->id)
|
->where('web_socket_dialog_msgs.id', '>', $first->id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user