mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
chore(ai): add automated PR review report
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
c3f96c8819
commit
cfbbf78941
30 files changed
+616
-1765
No files matched your search
@@ -1213,21 +1213,10 @@ export async function publishComment(
|
||||
? shouldRequestExtensionPermissions(signer)
|
||||
: false;
|
||||
|
||||
const hasCachedPermissions =
|
||||
typeof client?.hasRequiredExtensionPermissions === "function" &&
|
||||
client.hasRequiredExtensionPermissions(DEFAULT_NIP07_PERMISSION_METHODS);
|
||||
|
||||
if (shouldRequestPermissions && !hasCachedPermissions) {
|
||||
const permissionGate =
|
||||
typeof client?.ensureExtensionPermissionsGate === "function"
|
||||
? client.ensureExtensionPermissionsGate.bind(client)
|
||||
: typeof client?.ensureExtensionPermissions === "function"
|
||||
? client.ensureExtensionPermissions.bind(client)
|
||||
: null;
|
||||
|
||||
if (permissionGate) {
|
||||
permissionResult = await permissionGate(DEFAULT_NIP07_PERMISSION_METHODS);
|
||||
}
|
||||
if (shouldRequestPermissions) {
|
||||
permissionResult = await client.ensureExtensionPermissions(
|
||||
DEFAULT_NIP07_PERMISSION_METHODS,
|
||||
);
|
||||
}
|
||||
|
||||
if (!permissionResult.ok) {
|
||||
|
||||
Reference in new issue
Block a user