mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 15:23:36 +01:00
Allow all group members to have labels, no permission required
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user