Page MenuHomePhorge

D13336.1765054351.diff
No OneTemporary

Size
958 B
Referenced Files
None
Subscribers
None

D13336.1765054351.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
Sat, Dec 6, 8:52 PM (2 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5840752
Default Alt Text
D13336.1765054351.diff (958 B)

Event Timeline