Use POJO instead of MessageModel in ConversationView quote logic
This commit is contained in:
parent
c9b1ce6655
commit
6b2dfeb9f5
8 changed files with 92 additions and 119 deletions
|
@ -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'] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue