diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-11-08 22:21:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 22:21:18 +0100 |
commit | 734b11dc86c7f54eff7557271aba1e4530cbcc23 (patch) | |
tree | bdeabbf7460a5ed509e6476fa55257a637d13a18 /apps | |
parent | b29bc59e8b4a0683b6e6af289fbeffad332cfcc5 (diff) | |
parent | 71080a8d20d5e7ee9e77768cdfa47ec07a200393 (diff) | |
download | nextcloud-server-734b11dc86c7f54eff7557271aba1e4530cbcc23.tar.gz nextcloud-server-734b11dc86c7f54eff7557271aba1e4530cbcc23.zip |
Merge pull request #41266 from nextcloud/feat/contactsmenu/user-status-sorting
feat(contactsmenu): Sort by user status
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_status/lib/ContactsMenu/StatusProvider.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/user_status/lib/ContactsMenu/StatusProvider.php b/apps/user_status/lib/ContactsMenu/StatusProvider.php index 3c37d6b080f..f1316f02df8 100644 --- a/apps/user_status/lib/ContactsMenu/StatusProvider.php +++ b/apps/user_status/lib/ContactsMenu/StatusProvider.php @@ -44,6 +44,7 @@ class StatusProvider implements IBulkProvider { ); $statuses = $this->statusService->findByUserIds($uids); + /** @var array<string, UserStatus> $indexed */ $indexed = array_combine( array_map(fn(UserStatus $status) => $status->getUserId(), $statuses), $statuses @@ -56,6 +57,7 @@ class StatusProvider implements IBulkProvider { $entry->setStatus( $status->getStatus(), $status->getCustomMessage(), + $status->getStatusMessageTimestamp(), $status->getCustomIcon(), ); } |