MCPcopy Create free account
hub / github.com/CommE2E/comm / useInfosForPendingThread

Function useInfosForPendingThread

web/utils/thread-utils.js:26–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24};
25
26function useInfosForPendingThread(): InfosForPendingThread {
27 const isChatCreation = useSelector(
28 state => state.navInfo.chatMode === 'create',
29 );
30 const { selectedUserInfos = [] } = useProtocolSelection();
31 return {
32 isChatCreation,
33 selectedUserInfos,
34 };
35}
36
37function useThreadInfoForPossiblyPendingThread(
38 activeChatThreadID: ?string,

Calls 2

useSelectorFunction · 0.90
useProtocolSelectionFunction · 0.90

Tested by

no test coverage detected