From 932c05048f7ec87e20e9da3a681b26f8b3bc6a46 Mon Sep 17 00:00:00 2001 From: ellvix Date: Tue, 3 Dec 2024 17:45:29 -0700 Subject: [PATCH] fix: add username to chat history tracking (#611) --- src/js/constants.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/constants.js b/src/js/constants.js index cb6867fe..953b9e0b 100644 --- a/src/js/constants.js +++ b/src/js/constants.js @@ -2280,7 +2280,10 @@ class ChatLLM { // if we're tracking, log the data if (constants.canTrack) { let chatHist = chatLLM.CopyChatHistory(); - tracker.SetData('ChatHistory', { chatHistory: chatHist }); + let data = {}; + data.chatHistory = chatHist; + if (constants.emailAuthKey) data.username = constants.emailAuthKey; + tracker.SetData('ChatHistory', data); } }