Fixed PMC responses breaking messages and emptying the dialog window
This commit is contained in:
parent
c7811f69cf
commit
0411430381
@ -78,10 +78,7 @@ export class NotificationSendHelper {
|
|||||||
*/
|
*/
|
||||||
protected getDialog(sessionId: string, messageType: MessageType, senderDetails: IUserDialogInfo): IDialogue {
|
protected getDialog(sessionId: string, messageType: MessageType, senderDetails: IUserDialogInfo): IDialogue {
|
||||||
// Use trader id if sender is trader, otherwise use nickname
|
// Use trader id if sender is trader, otherwise use nickname
|
||||||
const key =
|
const key = senderDetails._id;
|
||||||
senderDetails.Info.MemberCategory === MemberCategory.TRADER
|
|
||||||
? senderDetails._id
|
|
||||||
: senderDetails.Info.Nickname;
|
|
||||||
const dialogueData = this.saveServer.getProfile(sessionId).dialogues;
|
const dialogueData = this.saveServer.getProfile(sessionId).dialogues;
|
||||||
const isNewDialogue = !(key in dialogueData);
|
const isNewDialogue = !(key in dialogueData);
|
||||||
let dialogue: IDialogue = dialogueData[key];
|
let dialogue: IDialogue = dialogueData[key];
|
||||||
|
Loading…
Reference in New Issue
Block a user