feat: closed group pubkeys cannot be used to create new messages

pull/3083/head
William Grant 1 year ago
parent 20766c4aba
commit 2d7b957d8c

@ -106,7 +106,8 @@ export const OverlayMessage = () => {
} }
const isPubkey = PubKey.validate(pubkeyorOnsTrimmed); const isPubkey = PubKey.validate(pubkeyorOnsTrimmed);
if (isPubkey && validationError) { const isGroupPubkey = PubKey.isClosedGroupV3(pubkeyorOnsTrimmed);
if ((isPubkey && validationError) || isGroupPubkey) {
setPubkeyOrOnsError(validationError); setPubkeyOrOnsError(validationError);
return; return;
} }

Loading…
Cancel
Save