Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33321574
D11786.1768847094.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
996 B
Referenced Files
None
Subscribers
None
D11786.1768847094.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 6:24 PM (13 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5957693
Default Alt Text
D11786.1768847094.diff (996 B)
Attached To
Mode
D11786: [native] Replace `threadHasPermission` with `useThreadHasPermission` in `ViewInviteLinksScreen`
Attached
Detach File
Event Timeline
Log In to Comment