From 72d900a6f5b5fbcdfc2764c264a3bee35b0b52a4 Mon Sep 17 00:00:00 2001 From: Jacob Karlsson Date: Tue, 24 Oct 2023 12:45:27 +0200 Subject: [PATCH] More direct isId functions --- format.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/format.js b/format.js index a3ac6f3..13f835f 100644 --- a/format.js +++ b/format.js @@ -61,12 +61,12 @@ function makeEncryptionFormat() { ) } - function isGroupId(recp) { - return keyring.group.has(recp) + function isGroupId(id) { + return Ref.isCloakedMsgId(id) || Uri.isIdentityGroupSSBURI(id) } - function isPoBoxId(recp) { - return keyring.poBox.has(recp) + function isPoBoxId(id) { + return Uri.isIdentityPOBoxSSBURI(id) } function isFeed(recp) {