Stop data sync after account authorization revoke
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user