Fix action propagation to timeline items
This commit is contained in:
parent
9ffa29ca0d
commit
5a57e2b704
14 changed files with 71 additions and 66 deletions
|
@ -888,10 +888,19 @@ export const getConversationMessagesSelector = createSelector(
|
|||
conversationMessagesSelector: CachedConversationMessagesSelectorType,
|
||||
messagesByConversation: MessagesByConversationType
|
||||
) => {
|
||||
return (id: string): TimelinePropsType | undefined => {
|
||||
return (id: string): TimelinePropsType => {
|
||||
const conversation = messagesByConversation[id];
|
||||
if (!conversation) {
|
||||
return undefined;
|
||||
// TODO: DESKTOP-2340
|
||||
return {
|
||||
haveNewest: false,
|
||||
haveOldest: false,
|
||||
isLoadingMessages: false,
|
||||
resetCounter: 0,
|
||||
scrollToIndexCounter: 0,
|
||||
totalUnread: 0,
|
||||
items: [],
|
||||
};
|
||||
}
|
||||
|
||||
return conversationMessagesSelector(conversation);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue