Support for people banned from joining groups via link
This commit is contained in:
parent
1b7496399b
commit
f217730b84
17 changed files with 455 additions and 108 deletions
15
ts/groups/util.ts
Normal file
15
ts/groups/util.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { SignalService as Proto } from '../protobuf';
|
||||
|
||||
const ACCESS_ENUM = Proto.AccessControl.AccessRequired;
|
||||
|
||||
export function isAccessControlEnabled(
|
||||
accessControl: number | undefined
|
||||
): boolean {
|
||||
return (
|
||||
accessControl === ACCESS_ENUM.ANY ||
|
||||
accessControl === ACCESS_ENUM.ADMINISTRATOR
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue