Add location support for EvenHub apps

This commit is contained in:
James Babcock committed 2026-08-16 21:01:20 -07:00
1 parent bcd1866b9f
commit 83b3049045
2 files changed
+98 -6

No files matched your search

+5
View File
@@ -91,6 +91,11 @@ export function isMicrophonePermission(name: EvenHubPermissionName): boolean {
return MICROPHONE_PERMISSIONS.has(name);
}
/** Whether the declared set includes a permission by name. */
export function permissionsInclude(permissions: EvenHubPermission[], name: EvenHubPermissionName): boolean {
return permissions.some((permission) => permission.name === name);
}
/** Whether the declared set includes any microphone permission. */
export function permissionsIncludeMicrophone(permissions: EvenHubPermission[]): boolean {
return permissions.some((permission) => isMicrophonePermission(permission.name));