This commit is contained in:
Mateusz Gruszczyński committed 2026-10-18 14:45:59 +02:00
1 parent 5cb6960b04
commit 0d7ffea17a
13 files changed
+17 -135

No files matched your search

+2 -3
View File
@@ -62,7 +62,7 @@ export function startNoteEditor(adapter) {
if (!bootLoading || bootFinishing) return;
bootFinishing = true;
bootLoading.complete("access");
bootLoading.skip("files"); // Identity/password dialog is ready to use.
bootLoading.skip("files");
bootLoading.ready();
}
let accessToken = shareToken || getAccessToken(adapter.access.kind, adapter.access.key), password = "", nickname = getNickname(), info, socket, saveTimer, applyingRemote = false, applyingHistory = false, resourceUnlocked = false, uiState = readEditorState(), authorship = parseAuthorship("", "[]"), previousContent = "", globalColor = "", noteColor = "", presenceUsers = [], authorshipMode = "simple", authorshipColorsEnabled = true, lastRevealedLineHash = "", lastRevealedHeadingHash = "", flushRequested = false, accountSession = null;
@@ -291,8 +291,7 @@ export function startNoteEditor(adapter) {
setMarkdownMentions([]);
mentionAutocomplete.setUsers([]);
mentionNavigator.setUsers([]);
// Session validation can finish before loadNoteInfo(); avoid a premature
// request (and a second request when note info becomes available).
if (!accountSession || !info) { render(); return; }
try {
const params = new URLSearchParams({ kind: adapter.access.kind, slug: adapter.access.key });