mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix initial group chat message timestamp when empty
This commit is contained in:
@ -14,7 +14,7 @@ import {
|
|||||||
saveChatConditional,
|
saveChatConditional,
|
||||||
saveItemizedPrompts,
|
saveItemizedPrompts,
|
||||||
} from '../script.js';
|
} from '../script.js';
|
||||||
import { humanizedDateTime } from './RossAscends-mods.js';
|
import { humanizedDateTime, getMessageTimeStamp } from './RossAscends-mods.js';
|
||||||
import {
|
import {
|
||||||
getGroupPastChats,
|
getGroupPastChats,
|
||||||
group_activation_strategy,
|
group_activation_strategy,
|
||||||
@ -297,7 +297,7 @@ async function convertSoloToGroupChat() {
|
|||||||
if (groupChat.length === 0) {
|
if (groupChat.length === 0) {
|
||||||
const newMessage = {
|
const newMessage = {
|
||||||
...system_messages[system_message_types.GROUP],
|
...system_messages[system_message_types.GROUP],
|
||||||
send_date: humanizedDateTime(),
|
send_date: getMessageTimeStamp(),
|
||||||
extra: { type: system_message_types.GROUP },
|
extra: { type: system_message_types.GROUP },
|
||||||
};
|
};
|
||||||
groupChat.push(newMessage);
|
groupChat.push(newMessage);
|
||||||
|
Reference in New Issue
Block a user