TF-4227 Cannot load more emails with Label

This commit is contained in:
dab246
2026-01-19 11:03:47 +07:00
committed by Dat H. Pham
parent f54250eb26
commit 0805f5c123
@@ -806,8 +806,10 @@ class ThreadController extends BaseController with EmailActionController {
} }
bool _validatePresentationEmail(PresentationEmail email) { bool _validatePresentationEmail(PresentationEmail email) {
return (_belongToCurrentMailboxId(email) || selectedMailbox?.isVirtualFolder == true) return (_belongToCurrentMailboxId(email) ||
&& _notDuplicatedInCurrentList(email); selectedMailbox?.isVirtualFolder == true ||
selectedMailbox?.isLabelMailbox == true) &&
_notDuplicatedInCurrentList(email);
} }
bool _belongToCurrentMailboxId(PresentationEmail email) { bool _belongToCurrentMailboxId(PresentationEmail email) {