Use POJO instead of MessageModel in ConversationView quote logic

This commit is contained in:
Evan Hahn 2021-06-22 18:16:50 -05:00 committed by GitHub
parent c9b1ce6655
commit 6b2dfeb9f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 92 additions and 119 deletions

View file

@ -291,7 +291,7 @@ export function getContact(
}
export function getConversation(
message: MessageAttributesType,
message: Pick<MessageAttributesType, 'conversationId'>,
conversationSelector: GetConversationByIdType
): ConversationType {
return conversationSelector(message.conversationId);
@ -987,7 +987,7 @@ function getPropsForPreview(
}
export function getPropsForQuote(
message: MessageAttributesType,
message: Pick<MessageAttributesType, 'conversationId' | 'quote'>,
conversationSelector: GetConversationByIdType,
ourConversationId: string | undefined
): PropsData['quote'] {