diff --git a/project/src/helpers/NotificationSendHelper.ts b/project/src/helpers/NotificationSendHelper.ts index 0fd850ba..55a19119 100644 --- a/project/src/helpers/NotificationSendHelper.ts +++ b/project/src/helpers/NotificationSendHelper.ts @@ -78,10 +78,7 @@ export class NotificationSendHelper { */ protected getDialog(sessionId: string, messageType: MessageType, senderDetails: IUserDialogInfo): IDialogue { // Use trader id if sender is trader, otherwise use nickname - const key = - senderDetails.Info.MemberCategory === MemberCategory.TRADER - ? senderDetails._id - : senderDetails.Info.Nickname; + const key = senderDetails._id; const dialogueData = this.saveServer.getProfile(sessionId).dialogues; const isNewDialogue = !(key in dialogueData); let dialogue: IDialogue = dialogueData[key];