From a031dbfbc81a0937d1efc3f6aaf25c43b402081c Mon Sep 17 00:00:00 2001 From: Succubyss <87207237+Succubyss@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:46:19 -0500 Subject: [PATCH] fix initial group chat message timestamp when empty --- public/scripts/bookmarks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/bookmarks.js b/public/scripts/bookmarks.js index 14ba977f8..77bb87cca 100644 --- a/public/scripts/bookmarks.js +++ b/public/scripts/bookmarks.js @@ -14,7 +14,7 @@ import { saveChatConditional, saveItemizedPrompts, } from '../script.js'; -import { humanizedDateTime } from './RossAscends-mods.js'; +import { humanizedDateTime, getMessageTimeStamp } from './RossAscends-mods.js'; import { getGroupPastChats, group_activation_strategy, @@ -297,7 +297,7 @@ async function convertSoloToGroupChat() { if (groupChat.length === 0) { const newMessage = { ...system_messages[system_message_types.GROUP], - send_date: humanizedDateTime(), + send_date: getMessageTimeStamp(), extra: { type: system_message_types.GROUP }, }; groupChat.push(newMessage);