Skip to content

Commit

Permalink
Fix merchant chat types for exchange data messages with relationship …
Browse files Browse the repository at this point in the history
…accounts
  • Loading branch information
jeffyanta committed Dec 8, 2023
1 parent 21f1ccc commit 0d3c50f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/code/chat/message_merchant.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func SendMerchantExchangeMessage(ctx context.Context, data code_data.Provider, i
// and will have merchant payments appear in the verified merchant
// chat.
chatTitle = *destinationAccountInfoRecord.RelationshipTo
chatType = chat.ChatTypeExternalApp
isVerifiedChat = true
verbByMessageReceiver[intentRecord.SendPrivatePaymentMetadata.DestinationOwnerAccount] = chatpb.ExchangeDataContent_DEPOSITED
}
Expand All @@ -86,6 +87,7 @@ func SendMerchantExchangeMessage(ctx context.Context, data code_data.Provider, i
// and will have merchant payments appear in the verified merchant
// chat.
chatTitle = *destinationAccountInfoRecord.RelationshipTo
chatType = chat.ChatTypeExternalApp
isVerifiedChat = true
verbByMessageReceiver[intentRecord.SendPublicPaymentMetadata.DestinationOwnerAccount] = chatpb.ExchangeDataContent_DEPOSITED
}
Expand All @@ -101,6 +103,7 @@ func SendMerchantExchangeMessage(ctx context.Context, data code_data.Provider, i
// and will have merchant payments appear in the verified merchant
// chat.
chatTitle = *destinationAccountInfoRecord.RelationshipTo
chatType = chat.ChatTypeExternalApp
isVerifiedChat = true
verbByMessageReceiver[intentRecord.ExternalDepositMetadata.DestinationOwnerAccount] = chatpb.ExchangeDataContent_DEPOSITED
}
Expand Down

0 comments on commit 0d3c50f

Please sign in to comment.