From 8e809fbc4d0749cd51d25e742341a6f9a292dd4f Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 23 Jul 2021 12:02:52 +0200 Subject: [PATCH] MOBILE-3785 groups: Always allow selecting all parts if visible groups --- src/core/services/groups.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/services/groups.ts b/src/core/services/groups.ts index 3d1150f5d..7aad3f30c 100644 --- a/src/core/services/groups.ts +++ b/src/core/services/groups.ts @@ -172,8 +172,7 @@ export class CoreGroupsProvider { groupInfo.visibleGroups = false; groupInfo.defaultGroupId = 0; } else { - // The "canaccessallgroups" field was added in 3.4. Add all participants for visible groups in previous versions. - if (result.canaccessallgroups || (typeof result.canaccessallgroups == 'undefined' && groupInfo.visibleGroups)) { + if (result.canaccessallgroups || groupInfo.visibleGroups) { groupInfo.groups!.push({ id: 0, name: Translate.instant('core.allparticipants') }); groupInfo.defaultGroupId = 0; } else {