Allow Pausing Users within Syncshells without Individual Pair

This commit is contained in:
BoxuChan
2025-10-06 18:58:59 +02:00
parent ddef5cb2cf
commit 42893e5b53
3 changed files with 27 additions and 4 deletions

View File

@@ -332,6 +332,11 @@ public class Pair : DisposableMediatorSubscriberBase
_logger.LogTrace("Nothing to remove");
return data;
}
if (IsPaused)
{
_logger.LogTrace("Skipping data removal for paused user {uid}", UserData.UID);
return data;
}
var ActiveGroupPairs = GroupPair.Where(p => !p.Value.GroupUserPermissions.IsPaused() && !p.Key.GroupUserPermissions.IsPaused()).ToList();