Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3334691
D13820.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
D13820.diff
View Options
diff --git a/lib/selectors/chat-selectors.js b/lib/selectors/chat-selectors.js
--- a/lib/selectors/chat-selectors.js
+++ b/lib/selectors/chat-selectors.js
@@ -22,11 +22,7 @@
sortMessageInfoList,
} from '../shared/message-utils.js';
import { messageSpecs } from '../shared/messages/message-specs.js';
-import {
- threadInChatList,
- threadIsPending,
- threadIsTopLevel,
-} from '../shared/thread-utils.js';
+import { threadInChatList, threadIsPending } from '../shared/thread-utils.js';
import { messageTypes } from '../types/message-types-enum.js';
import {
type ComposableMessageInfo,
@@ -204,29 +200,6 @@
};
}
-const chatListData: (state: BaseAppState<>) => $ReadOnlyArray<ChatThreadItem> =
- createSelector(
- threadInfoSelector,
- (state: BaseAppState<>) => state.messageStore,
- messageInfoSelector,
- sidebarInfoSelector,
- (
- threadInfos: {
- +[id: string]: ThreadInfo,
- },
- messageStore: MessageStore,
- messageInfos: { +[id: string]: ?MessageInfo },
- sidebarInfos: { +[id: string]: $ReadOnlyArray<SidebarInfo> },
- ): $ReadOnlyArray<ChatThreadItem> =>
- getChatThreadItems(
- threadInfos,
- messageStore,
- messageInfos,
- sidebarInfos,
- threadIsTopLevel,
- ),
- );
-
function useFlattenedChatListData(): $ReadOnlyArray<ChatThreadItem> {
return useFilteredChatListData(threadInChatList);
}
@@ -736,7 +709,6 @@
export {
messageInfoSelector,
createChatThreadItem,
- chatListData,
createChatMessageItems,
messageListData,
useFlattenedChatListData,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 7:28 AM (19 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2560588
Default Alt Text
D13820.diff (1 KB)
Attached To
Mode
D13820: [lib] Remove chatListData
Attached
Detach File
Event Timeline
Log In to Comment