Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3498459
D6604.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
D6604.diff
View Options
diff --git a/web/calendar/entry.react.js b/web/calendar/entry.react.js
--- a/web/calendar/entry.react.js
+++ b/web/calendar/entry.react.js
@@ -36,13 +36,14 @@
import type { LoadingStatus } from 'lib/types/loading-types';
import type { Dispatch } from 'lib/types/redux-types';
import { threadPermissions } from 'lib/types/thread-types';
-import type { ThreadInfo } from 'lib/types/thread-types';
+import type { ResolvedThreadInfo } from 'lib/types/thread-types';
import {
type DispatchActionPromise,
useServerCall,
useDispatchActionPromise,
} from 'lib/utils/action-utils';
import { dateString } from 'lib/utils/date-utils';
+import { useResolvedThreadInfo } from 'lib/utils/entity-helpers';
import { ServerError } from 'lib/utils/errors';
import LoadingIndicator from '../loading-indicator.react';
@@ -62,7 +63,7 @@
};
type Props = {
...BaseProps,
- +threadInfo: ThreadInfo,
+ +threadInfo: ResolvedThreadInfo,
+loggedIn: boolean,
+calendarQuery: () => CalendarQuery,
+online: boolean,
@@ -462,9 +463,10 @@
const ConnectedEntry: React.ComponentType<BaseProps> = React.memo<BaseProps>(
function ConnectedEntry(props) {
const { threadID } = props.entryInfo;
- const threadInfo = useSelector(
+ const unresolvedThreadInfo = useSelector(
state => threadInfoSelector(state)[threadID],
);
+ const threadInfo = useResolvedThreadInfo(unresolvedThreadInfo);
const loggedIn = useSelector(
state =>
!!(state.currentUserInfo && !state.currentUserInfo.anonymous && true),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 9:15 PM (17 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683143
Default Alt Text
D6604.diff (1 KB)
Attached To
Mode
D6604: [web] Fetch ENS names in Entry
Attached
Detach File
Event Timeline
Log In to Comment