Allow all group members to have labels, no permission required

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal
2026-03-04 10:07:23 -06:00
committed by GitHub
parent 48b0d87a57
commit b7b2116fe2
4 changed files with 1 additions and 167 deletions

View File

@@ -5,7 +5,6 @@ import type {
ConversationType,
MembershipType,
} from '../state/ducks/conversations.preload.js';
import { SignalService as Proto } from '../protobuf/index.std.js';
export const missingEmojiPlaceholder = '⍰';
@@ -26,11 +25,5 @@ export function getCanAddLabel(
conversation: ConversationType,
membership: MembershipType | undefined
): boolean {
return Boolean(
membership &&
conversation.type === 'group' &&
(membership.isAdmin ||
conversation.accessControlAttributes ===
Proto.AccessControl.AccessRequired.MEMBER)
);
return Boolean(membership && conversation.type === 'group');
}