Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3375314
D10645.id36017.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D10645.id36017.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
@@ -212,7 +212,7 @@
sidebarInfoSelector,
(
threadInfos: {
- +[id: string]: LegacyThreadInfo | ThreadInfo,
+ +[id: string]: ThreadInfo,
},
messageStore: MessageStore,
messageInfos: { +[id: string]: ?MessageInfo },
@@ -255,17 +255,15 @@
}
function getChatThreadItems(
- threadInfos: { +[id: string]: LegacyThreadInfo | ThreadInfo },
+ threadInfos: { +[id: string]: ThreadInfo },
messageStore: MessageStore,
messageInfos: { +[id: string]: ?MessageInfo },
sidebarInfos: { +[id: string]: $ReadOnlyArray<SidebarInfo> },
- filterFunction: (
- threadInfo: ?(LegacyThreadInfo | ThreadInfo | RawThreadInfo),
- ) => boolean,
+ filterFunction: (threadInfo: ?(ThreadInfo | RawThreadInfo)) => boolean,
): $ReadOnlyArray<ChatThreadItem> {
return _flow(
_filter(filterFunction),
- _map((threadInfo: LegacyThreadInfo | ThreadInfo): ChatThreadItem =>
+ _map((threadInfo: ThreadInfo): ChatThreadItem =>
createChatThreadItem(
threadInfo,
messageStore,
@@ -317,9 +315,9 @@
threadID: string,
messageStore: MessageStore,
messageInfos: { +[id: string]: ?MessageInfo },
- threadInfos: { +[id: string]: LegacyThreadInfo | ThreadInfo },
+ threadInfos: { +[id: string]: ThreadInfo },
threadInfoFromSourceMessageID: {
- +[id: string]: LegacyThreadInfo | ThreadInfo,
+ +[id: string]: ThreadInfo,
},
additionalMessages: $ReadOnlyArray<MessageInfo>,
viewerID: string,
@@ -592,10 +590,10 @@
messageStore: MessageStore,
messageInfos: { +[id: string]: ?MessageInfo },
threadInfos: {
- +[id: string]: LegacyThreadInfo | ThreadInfo,
+ +[id: string]: ThreadInfo,
},
threadInfoFromSourceMessageID: {
- +[id: string]: LegacyThreadInfo | ThreadInfo,
+ +[id: string]: ThreadInfo,
},
viewerID: ?string,
): ?(ChatMessageItem[]) => {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 7:38 PM (21 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2591470
Default Alt Text
D10645.id36017.diff (2 KB)
Attached To
Mode
D10645: [lib] First pass at removing `LegacyThreadInfo` from `chat-selectors`
Attached
Detach File
Event Timeline
Log In to Comment