GPT: сгенерено и не проверено (смена ключей пользователя)

This commit is contained in:
AidarKC
2026-09-27 15:50:27 +03:00
parent 13693a0a53
commit 151a2c1754
94 changed files with 5327 additions and 815 deletions
@@ -290,7 +290,7 @@ export function openArweaveAttachmentManager({
mode = 'attachment',
historyPurpose = '',
uploadTransport = 'turbo',
turboKeySource = 'client',
turboKeySource = 'blockchain',
dialogTitle = '',
uploadButtonLabel = '',
initialFile = null,
@@ -406,20 +406,9 @@ export function openArweaveAttachmentManager({
turboKeyChoices = await getStoredSolanaWalletChoices({
login: cleanLogin,
storagePwd: cleanStoragePwd,
includeRoot: true,
});
turboKeyChoices.sort((a, b) => {
if (a?.keySource === b?.keySource) return 0;
if (a?.keySource === 'client') return -1;
if (b?.keySource === 'client') return 1;
return 0;
});
if (!turboKeyChoices.some((item) => String(item.keySource) === String(selectedTurboKeySource))) {
selectedTurboKeySource = String(
turboKeyChoices.find((item) => item.keySource === 'client')?.keySource
|| turboKeyChoices[0]?.keySource
|| 'client'
);
selectedTurboKeySource = String(turboKeyChoices[0]?.keySource || 'blockchain');
}
writeLastTurboKeySource(cleanLogin, selectedTurboKeySource);
} catch (error) {