Skip to content

Commit

Permalink
fixup! TF-2316 Find unsubscribed children and add to mapDescendent
Browse files Browse the repository at this point in the history
  • Loading branch information
hieutbui committed Jan 30, 2024
1 parent 59516fa commit edd8808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/features/mailbox/presentation/utils/mailbox_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class MailboxUtils {

if (matchedNode != null) {
List<MailboxId> descendantIds;
if (unSubscribedChildrenMailboxIds != null) {
if (unSubscribedChildrenMailboxIds != null && unSubscribedChildrenMailboxIds.isNotEmpty) {
descendantIds = matchedNode.descendantsAsList().mailboxIds + unSubscribedChildrenMailboxIds;
} else {
descendantIds = matchedNode.descendantsAsList().mailboxIds;
Expand Down

0 comments on commit edd8808

Please sign in to comment.