Fix system message overwriting auto-loaded chat #281

This commit is contained in:
SillyLossy
2023-05-12 10:14:57 +03:00
parent 4eb9bf8cac
commit 8500e049c9

View File

@@ -551,13 +551,13 @@ $.ajaxPrefilter((options, originalOptions, xhr) => {
///// initialization protocol //////// ///// initialization protocol ////////
$.get("/csrf-token").then(async (data) => { $.get("/csrf-token").then(async (data) => {
token = data.token; token = data.token;
sendSystemMessage(system_message_types.WELCOME);
await readSecretState(); await readSecretState();
await getClientVersion(); await getClientVersion();
await getSettings("def"); await getSettings("def");
await getUserAvatars();
await getCharacters(); await getCharacters();
await getBackgrounds(); await getBackgrounds();
await getUserAvatars();
sendSystemMessage(system_message_types.WELCOME);
}); });
function checkOnlineStatus() { function checkOnlineStatus() {