Skip to content

Commit

Permalink
Update ApiV1Controller, filter conversations without last_status
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Feb 10, 2023
1 parent 29b1af1 commit e8a6a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/ApiV1Controller.php
Expand Up @@ -2335,7 +2335,7 @@ public function conversations(Request $request)
return $res;
})
->filter(function($dm) {
return isset($dm['accounts']) && count($dm['accounts']);
return isset($dm['accounts']) && count($dm['accounts']) && !empty($dm['last_status']);
})
->unique(function($item, $key) {
return $item['accounts'][0]['id'];
Expand Down

0 comments on commit e8a6a8c

Please sign in to comment.