Stop data sync after account authorization revoke

This commit is contained in:
2026-09-22 13:02:55 +08:00
parent 51c9524437
commit e8a8b2f926
6 changed files with 159 additions and 12 deletions
+11
View File
@@ -362,6 +362,17 @@ public sealed class RemoteDataBatchQueue
}
}
public int DropAllForAccount(string accountId)
{
lock (gate)
{
var removed = state.Items.RemoveAll(item => string.Equals(item.AccountId, accountId, StringComparison.Ordinal));
if (removed > 0)
SaveLocked();
return removed;
}
}
public bool MarkConfirmed(RemoteDataBatchAck acknowledgement)
{
lock (gate)