Page MenuHomePhabricator

D11786.id39562.diff
No OneTemporary

D11786.id39562.diff

diff --git a/native/invite-links/view-invite-links-screen.react.js b/native/invite-links/view-invite-links-screen.react.js
--- a/native/invite-links/view-invite-links-screen.react.js
+++ b/native/invite-links/view-invite-links-screen.react.js
@@ -7,7 +7,7 @@
import { inviteLinkURL } from 'lib/facts/links.js';
import { primaryInviteLinksSelector } from 'lib/selectors/invite-links-selectors.js';
-import { threadHasPermission } from 'lib/shared/thread-utils.js';
+import { useThreadHasPermission } from 'lib/shared/thread-utils.js';
import type { InviteLink } from 'lib/types/link-types.js';
import type { ThreadInfo } from 'lib/types/minimally-encoded-thread-permissions-types.js';
import { threadPermissions } from 'lib/types/thread-permission-types.js';
@@ -57,7 +57,7 @@
},
});
}, [community, navigate]);
- const canManageLinks = threadHasPermission(
+ const canManageLinks = useThreadHasPermission(
community,
threadPermissions.MANAGE_INVITE_LINKS,
);

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 3:26 PM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2431278
Default Alt Text
D11786.id39562.diff (996 B)

Event Timeline