Updates
This commit is contained in:
@@ -301,7 +301,7 @@ export function encodeInvite(pkg) {
|
||||
export function decodeInvite(invite) {
|
||||
const s = String(invite || '').trim()
|
||||
if (!s.startsWith(INVITE_PREFIX)) {
|
||||
return { ok: false, error: 'Not a pa1 invite', code: 'INVITE_INVALID' }
|
||||
return { ok: false, error: 'Not a pd1 invite', code: 'INVITE_INVALID' }
|
||||
}
|
||||
try {
|
||||
const json = b64urlDecode(s.slice(INVITE_PREFIX.length)).toString('utf8')
|
||||
|
||||
Reference in New Issue
Block a user