Page MenuHomePhabricator

D12408.id.diff
No OneTemporary

D12408.id.diff

diff --git a/web/app.react.js b/web/app.react.js
--- a/web/app.react.js
+++ b/web/app.react.js
@@ -51,7 +51,6 @@
import { MemberListSidebarProvider } from './chat/member-list-sidebar/member-list-sidebar-provider.react.js';
import CommunitiesRefresher from './components/communities-refresher.react.js';
import { DBOpsHandler } from './components/db-ops-handler.react.js';
-import IdentityPing from './components/identity-ping.react.js';
import LogOutIfMissingCSATHandler from './components/log-out-if-missing-csat-handler.react.js';
import NavigationArrows from './components/navigation-arrows.react.js';
import MinVersionHandler from './components/version-handler.react.js';
@@ -239,7 +238,6 @@
<InviteLinksRefresher />
<CommunitiesRefresher />
<MinVersionHandler />
- <IdentityPing />
<PlatformDetailsSynchronizer />
<LogOutIfMissingCSATHandler />
<UserInfosHandler />
diff --git a/web/components/identity-ping.react.js b/web/components/identity-ping.react.js
deleted file mode 100644
--- a/web/components/identity-ping.react.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// @flow
-
-import * as React from 'react';
-
-import { IdentityClientContext } from 'lib/shared/identity-client-context.js';
-import { useIsCurrentUserStaff } from 'lib/shared/staff-utils.js';
-
-function IdentityPing(): React.Node {
- const identityContext = React.useContext(IdentityClientContext);
- const isCurrentUserStaff = useIsCurrentUserStaff();
-
- const ping = React.useCallback(async () => {
- try {
- if (!identityContext) {
- console.log('Identity context not available');
- return;
- }
- const identityClient = identityContext.identityClient;
- const pingCall = identityClient.versionSupported;
- if (!pingCall) {
- console.log('Ping method unimplemented');
- return;
- }
- await pingCall();
- if (isCurrentUserStaff) {
- console.log('Identity ping successful');
- }
- } catch (error) {
- console.log('Error pinging identity service:', error);
- }
- }, [identityContext, isCurrentUserStaff]);
-
- React.useEffect(() => {
- void ping();
- }, [ping]);
-
- return null;
-}
-
-export default IdentityPing;

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 5, 7:59 AM (12 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2616467
Default Alt Text
D12408.id.diff (2 KB)

Event Timeline