Skip to content

Commit

Permalink
Do not show closed conversations in non-standard folders - closes #3988
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Apr 21, 2024
1 parent add6f17 commit 7a6cbab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,9 @@ public function getNearby($mode = 'closest', $folder_id = null, $status = null,

$query = \Eventy::filter('conversation.get_nearby_query', $query, $this, $mode, $folder);

if ($status) {
$status_applied = \Eventy::filter('conversation.get_nearby_status', false, $query, $status, $this, $folder);

if (!$status_applied && $status) {
$query->where('status', $status);
}

Expand Down

0 comments on commit 7a6cbab

Please sign in to comment.