fix(settings): force save snapshot after account sync to ensure persistence of tokens and bridge URL
This commit is contained in:
parent
c272461281
commit
009e4391c2
@ -337,9 +337,10 @@ Future<AccountSyncResult> syncAccountSettingsInternal(
|
||||
final sanitizedSettings = _sanitizeBridgeOnlyAccountSyncSettings(
|
||||
currentSettings.copyWith(acpBridgeServerModeConfig: nextModeConfig),
|
||||
);
|
||||
if (sanitizedSettings.toJsonString() != currentSettings.toJsonString()) {
|
||||
await controller.saveSnapshot(sanitizedSettings);
|
||||
}
|
||||
// Always save the snapshot after a successful sync to ensure Token and URL updates
|
||||
// are correctly persisted in the store and reflected in the UI.
|
||||
await controller.saveSnapshot(sanitizedSettings);
|
||||
|
||||
await controller.reloadDerivedStateInternal();
|
||||
final email = controller.accountSessionInternal?.email.trim() ?? '';
|
||||
controller.accountStatusInternal = email.isEmpty
|
||||
|
||||
Loading…
Reference in New Issue
Block a user