From 0411430381586ccd15c49f912fc2820a813680ec Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 2 Nov 2024 20:37:26 +0000 Subject: [PATCH] Fixed PMC responses breaking messages and emptying the dialog window --- project/src/helpers/NotificationSendHelper.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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];