Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3534080
D13354.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
D13354.diff
View Options
diff --git a/web/modals/history/history-modal.react.js b/web/modals/history/history-modal.react.js
--- a/web/modals/history/history-modal.react.js
+++ b/web/modals/history/history-modal.react.js
@@ -30,6 +30,7 @@
HistoryRevisionInfo,
} from 'lib/types/history-types.js';
import type { LoadingStatus } from 'lib/types/loading-types.js';
+import type { RawThreadInfos } from 'lib/types/thread-types.js';
import { prettyDateWithoutDay } from 'lib/utils/date-utils.js';
import {
useDispatchActionPromise,
@@ -52,6 +53,7 @@
type Props = {
...BaseProps,
+entryInfos: ?(EntryInfo[]),
+ +threadInfos: ?RawThreadInfos,
+dayLoadingStatus: LoadingStatus,
+entryLoadingStatus: LoadingStatus,
+calendarFilters: $ReadOnlyArray<CalendarFilter>,
@@ -112,9 +114,13 @@
let entries;
const entryInfos = this.props.entryInfos;
+ const threadInfos = this.props.threadInfos;
if (entryInfos) {
entries = _flow(
- _filter((entryInfo: EntryInfo) => entryInfo.id),
+ _filter(
+ (entryInfo: EntryInfo) =>
+ entryInfo.id && !threadInfos?.[entryInfo.threadID].thick,
+ ),
_map((entryInfo: EntryInfo) => {
const serverID = entryInfo.id;
invariant(serverID, 'serverID should be set');
@@ -259,6 +265,7 @@
const entryInfos = useSelector(
state => allDaysToEntries(state)[props.dayString],
);
+ const threadInfos = useSelector(state => state.threadStore.threadInfos);
const dayLoadingStatus = useSelector(dayLoadingStatusSelector);
const entryLoadingStatus = useSelector(entryLoadingStatusSelector);
const calendarFilters = useSelector(
@@ -273,6 +280,7 @@
<HistoryModal
{...props}
entryInfos={entryInfos}
+ threadInfos={threadInfos}
dayLoadingStatus={dayLoadingStatus}
entryLoadingStatus={entryLoadingStatus}
calendarFilters={calendarFilters}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 11:54 AM (11 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2706347
Default Alt Text
D13354.diff (1 KB)
Attached To
Mode
D13354: [web] Disable thick thread entries from showing up in the history modal as history entries
Attached
Detach File
Event Timeline
Log In to Comment