Temporary persona toast respects setting

This commit is contained in:
Wolfsblvt
2025-01-25 19:27:29 +01:00
parent ef73ab43da
commit 3fc4207cdb

View File

@@ -748,6 +748,7 @@ function selectCurrentPersona() {
}
// As the last step, inform user if the persona is only temporarily chosen
if (power_user.persona_show_notifications) {
const hasDifferentChatLock = !!chat_metadata['persona'] && chat_metadata['persona'] !== user_avatar;
const hasDifferentDefaultLock = power_user.default_persona && power_user.default_persona !== user_avatar;
@@ -760,6 +761,7 @@ function selectCurrentPersona() {
toastr.info(message, t`Temporary Persona`, { escapeHtml: false, timeOut: 10000, extendedTimeOut: 20000, preventDuplicates: true });
}
}
}
}
/**