Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33170215
D6610.1768524578.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D6610.1768524578.diff
View Options
diff --git a/web/modals/history/history-entry.react.js b/web/modals/history/history-entry.react.js
--- a/web/modals/history/history-entry.react.js
+++ b/web/modals/history/history-entry.react.js
@@ -19,13 +19,14 @@
type CalendarQuery,
} from 'lib/types/entry-types';
import type { LoadingStatus } from 'lib/types/loading-types';
-import type { ThreadInfo } from 'lib/types/thread-types';
+import type { ResolvedThreadInfo } from 'lib/types/thread-types';
import type { UserInfo } from 'lib/types/user-types';
import {
type DispatchActionPromise,
useDispatchActionPromise,
useServerCall,
} from 'lib/utils/action-utils';
+import { useResolvedThreadInfo } from 'lib/utils/entity-helpers';
import LoadingIndicator from '../../loading-indicator.react';
import { useSelector } from '../../redux/redux-utils';
@@ -39,7 +40,7 @@
};
type Props = {
...BaseProps,
- +threadInfo: ThreadInfo,
+ +threadInfo: ResolvedThreadInfo,
+loggedIn: boolean,
+restoreLoadingStatus: LoadingStatus,
+calendarQuery: () => CalendarQuery,
@@ -149,9 +150,10 @@
function ConnectedHistoryEntry(props) {
const entryID = props.entryInfo.id;
invariant(entryID, 'entryInfo.id (serverID) should be set');
- const threadInfo = useSelector(
+ const unresolvedThreadInfo = useSelector(
state => threadInfoSelector(state)[props.entryInfo.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, Jan 16, 12:49 AM (16 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5941019
Default Alt Text
D6610.1768524578.diff (1 KB)
Attached To
Mode
D6610: [web] Fetch ENS names in HistoryEntry
Attached
Detach File
Event Timeline
Log In to Comment