Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3350450
D12717.id42266.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12717.id42266.diff
View Options
diff --git a/web/app.react.js b/web/app.react.js
--- a/web/app.react.js
+++ b/web/app.react.js
@@ -52,6 +52,7 @@
import Chat from './chat/chat.react.js';
import { EditModalProvider } from './chat/edit-message-provider.js';
import { MemberListSidebarProvider } from './chat/member-list-sidebar/member-list-sidebar-provider.react.js';
+import { AutoJoinCommunityHandler } from './components/auto-join-community-handler.react.js';
import CommunitiesRefresher from './components/communities-refresher.react.js';
import { DBOpsHandler } from './components/db-ops-handler.react.js';
import LogOutIfMissingCSATHandler from './components/log-out-if-missing-csat-handler.react.js';
@@ -252,6 +253,7 @@
<UserInfosHandler />
<TunnelbrokerDeviceTokenHandler />
<FarcasterDataHandler />
+ <AutoJoinCommunityHandler />
{content}
</ChatMentionContextProvider>
</MessageSearchStateProvider>
diff --git a/web/components/auto-join-community-handler.react.js b/web/components/auto-join-community-handler.react.js
new file mode 100644
--- /dev/null
+++ b/web/components/auto-join-community-handler.react.js
@@ -0,0 +1,16 @@
+// @flow
+
+import * as React from 'react';
+
+import { BaseAutoJoinCommunityHandler } from 'lib/components/base-auto-join-community-handler.react.js';
+
+import { useSelector } from '../redux/redux-utils.js';
+import { nonThreadCalendarQuery } from '../selectors/nav-selectors.js';
+
+function AutoJoinCommunityHandler(): React.Node {
+ const calendarQuery = useSelector(nonThreadCalendarQuery);
+
+ return <BaseAutoJoinCommunityHandler calendarQuery={calendarQuery} />;
+}
+
+export { AutoJoinCommunityHandler };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 10:38 PM (19 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2572036
Default Alt Text
D12717.id42266.diff (1 KB)
Attached To
Mode
D12717: [web] introduce AutoJoinCommunityHandler to web
Attached
Detach File
Event Timeline
Log In to Comment