Commit 280f505e authored by Ben Hayward's avatar Ben Hayward

Removed comments

1 merge request!366[Sprint/PinkPanther](feat): Put unread conversations to top of conversation list
Pipeline #88716383 failed with stages
in 16 minutes and 37 seconds
......@@ -115,25 +115,10 @@ class Conversations
usort($return, function ($a, $b) {
return $b->ts - $a->ts;
});
// for ($i = 0; $i < count($return); $i++) {
foreach ($return as $i => $item) {
if ($item->isUnread()) {
// $return = array_unshift($return, $return[$i]);
// $result = array_splice($return, $i, 1);
// $return = array_splice(
// $return,
// array_search(
// $i,array_keys($return)),
// 1
// ) + $return;
$return = [$i => $return[$i]] + $return;
// $return = array_splice(
// array_unshift($return, $item);
// $return = array_splice($return, $i, 1);
// array_diff($return, $item);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment