From 143d96af6be77fa31221b5b27259c2b7dd071f5b Mon Sep 17 00:00:00 2001 From: Lars Jansen Date: Wed, 4 Dec 2024 11:56:11 +0100 Subject: [PATCH] feat: added filter on mailboxes in move_conv popup --- app/Http/Controllers/ConversationsController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ConversationsController.php b/app/Http/Controllers/ConversationsController.php index 9169cd195..f54fa64f7 100755 --- a/app/Http/Controllers/ConversationsController.php +++ b/app/Http/Controllers/ConversationsController.php @@ -2563,9 +2563,11 @@ public function ajaxHtmlMoveConv() abort(403); } + $mailboxes = \Eventy::filter( 'conversations.move_conv.mailboxes', $user->mailboxesCanView() ); + return view('conversations/ajax_html/move_conv', [ 'conversation' => $conversation, - 'mailboxes' => $user->mailboxesCanView(), + 'mailboxes' => $mailboxes, ]); }