Skip to content

Commit 0d3c50f

Browse files
committed
Fix merchant chat types for exchange data messages with relationship accounts
1 parent 21f1ccc commit 0d3c50f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/code/chat/message_merchant.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ func SendMerchantExchangeMessage(ctx context.Context, data code_data.Provider, i
7070
// and will have merchant payments appear in the verified merchant
7171
// chat.
7272
chatTitle = *destinationAccountInfoRecord.RelationshipTo
73+
chatType = chat.ChatTypeExternalApp
7374
isVerifiedChat = true
7475
verbByMessageReceiver[intentRecord.SendPrivatePaymentMetadata.DestinationOwnerAccount] = chatpb.ExchangeDataContent_DEPOSITED
7576
}
@@ -86,6 +87,7 @@ func SendMerchantExchangeMessage(ctx context.Context, data code_data.Provider, i
8687
// and will have merchant payments appear in the verified merchant
8788
// chat.
8889
chatTitle = *destinationAccountInfoRecord.RelationshipTo
90+
chatType = chat.ChatTypeExternalApp
8991
isVerifiedChat = true
9092
verbByMessageReceiver[intentRecord.SendPublicPaymentMetadata.DestinationOwnerAccount] = chatpb.ExchangeDataContent_DEPOSITED
9193
}
@@ -101,6 +103,7 @@ func SendMerchantExchangeMessage(ctx context.Context, data code_data.Provider, i
101103
// and will have merchant payments appear in the verified merchant
102104
// chat.
103105
chatTitle = *destinationAccountInfoRecord.RelationshipTo
106+
chatType = chat.ChatTypeExternalApp
104107
isVerifiedChat = true
105108
verbByMessageReceiver[intentRecord.ExternalDepositMetadata.DestinationOwnerAccount] = chatpb.ExchangeDataContent_DEPOSITED
106109
}

0 commit comments

Comments
 (0)