Page MenuHomePhabricator

D13354.diff
No OneTemporary

D13354.diff

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

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)

Event Timeline