Page MenuHomePhabricator

D13336.id44183.diff
No OneTemporary

D13336.id44183.diff

diff --git a/lib/shared/ancestor-threads.js b/lib/shared/ancestor-threads.js
--- a/lib/shared/ancestor-threads.js
+++ b/lib/shared/ancestor-threads.js
@@ -9,6 +9,7 @@
} from '../selectors/thread-selectors.js';
import { threadIsPending } from '../shared/thread-utils.js';
import type { ThreadInfo } from '../types/minimally-encoded-thread-permissions-types.js';
+import { threadTypeIsThick } from '../types/thread-types-enum.js';
import { useSelector } from '../utils/redux-utils.js';
function useAncestorThreads(
@@ -26,8 +27,10 @@
? ancestorThreads.slice(0, -1)
: ancestorThreads;
}
- return genesisThreadInfo ? [genesisThreadInfo] : [];
- }, [ancestorThreads, genesisThreadInfo, threadInfo.id]);
+ return genesisThreadInfo && !threadTypeIsThick(threadInfo.type)
+ ? [genesisThreadInfo]
+ : [];
+ }, [ancestorThreads, genesisThreadInfo, threadInfo.id, threadInfo.type]);
}
export { useAncestorThreads };

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 5:02 PM (15 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2695474
Default Alt Text
D13336.id44183.diff (958 B)

Event Timeline