diff --git a/project/src/services/MailSendService.ts b/project/src/services/MailSendService.ts index 4fa09d68..9a8f51ad 100644 --- a/project/src/services/MailSendService.ts +++ b/project/src/services/MailSendService.ts @@ -392,6 +392,12 @@ export class MailSendService return messageDetails.senderDetails?._id; } + /** Dialog is from a trader, return trader */ + if (messageDetails.dialogType === MessageType.NPC_TRADER) + { + return messageDetails.trader; + } + if (messageDetails.senderDetails?._id) { return messageDetails.senderDetails._id;