Merge pull request #1686 from PR0M3TH3AN/fix-storage-isolation-7292502268303926887

Fix storage credentials persistence on profile switch
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-25 13:35:24 -05:00
commit b6260c1352
2 files changed
+5

No files matched your search

+1
View File
@@ -53,6 +53,7 @@ import {
} from "./feedEngine/index.js";
import watchHistoryService from "./watchHistoryService.js";
import r2Service from "./services/r2Service.js";
import storageService from "./services/storageService.js";
import {
getVideoNoteErrorMessage,
normalizeVideoNotePayload,
+4
View File
@@ -8974,6 +8974,8 @@ export class ProfileModalController {
const storageService = this.services.storageService;
const pubkey = this.normalizeHexPubkey(this.getActivePubkey());
this.handleClearStorage();
if (!pubkey) {
// Not logged in
if (this.storageUnlockSection) this.storageUnlockSection.classList.add("hidden");
@@ -9300,6 +9302,8 @@ export class ProfileModalController {
this.storageBucketInput.value = "";
this.storagePrefixInput.value = "";
this.storageDefaultInput.checked = false;
this.storageProviderInput.value = "cloudflare_r2";
this.updateStorageFormVisibility();
this.setStorageFormStatus("", "info");
}