Add extra check for messages from traders where dialog type is defined
This commit is contained in:
parent
25ea9afae4
commit
a09c813358
@ -392,6 +392,12 @@ export class MailSendService
|
|||||||
return messageDetails.senderDetails?._id;
|
return messageDetails.senderDetails?._id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Dialog is from a trader, return trader */
|
||||||
|
if (messageDetails.dialogType === MessageType.NPC_TRADER)
|
||||||
|
{
|
||||||
|
return messageDetails.trader;
|
||||||
|
}
|
||||||
|
|
||||||
if (messageDetails.senderDetails?._id)
|
if (messageDetails.senderDetails?._id)
|
||||||
{
|
{
|
||||||
return messageDetails.senderDetails._id;
|
return messageDetails.senderDetails._id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user