Add extra check for messages from traders where dialog type is defined

This commit is contained in:
Dev 2023-07-22 13:32:37 +01:00
parent 25ea9afae4
commit a09c813358

View File

@ -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;