Skip to content

Commit

Permalink
More direct isId functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Powersource committed Oct 24, 2023
1 parent 11cba55 commit 72d900a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions format.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 72d900a

Please sign in to comment.