Skip to content

Commit

Permalink
fixup! JAMES-2182 MailboxManager mailbox search for specific other user
Browse files Browse the repository at this point in the history
  • Loading branch information
chibenwa committed Oct 22, 2024
1 parent babafcd commit f549a1f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,8 @@ private Flux<Mailbox> searchMailboxes(MailboxQuery mailboxQuery, MailboxSession
}

private Flux<Mailbox> getBaseMailboxes(MailboxMapper mailboxMapper,MailboxQuery mailboxQuery, MailboxSession session) {
if (mailboxQuery.isPrivateMailboxes(session)) {
return mailboxMapper.findMailboxWithPathLike(toSingleUserQuery(mailboxQuery, session));
} else if (mailboxQuery.getNamespace().isEmpty() && mailboxQuery.getUser().isEmpty()) {
if (mailboxQuery.isPrivateMailboxes(session)
|| mailboxQuery.getNamespace().isEmpty() && mailboxQuery.getUser().isEmpty()) {
return mailboxMapper.findMailboxWithPathLike(toSingleUserQuery(mailboxQuery, session));
} else {
return Flux.empty();
Expand Down

0 comments on commit f549a1f

Please sign in to comment.