don't show shared data from paused people

This commit is contained in:
Stanley Dimant
2025-01-12 13:29:58 +01:00
parent 52d0fa6590
commit b77954cd57
2 changed files with 17 additions and 1 deletions

View File

@@ -63,6 +63,17 @@ public sealed class PairManager : DisposableMediatorSubscriberBase
RecreateLazy();
}
public Pair? GetPairByUID(string uid)
{
var existingPair = _allClientPairs.FirstOrDefault(f => f.Key.UID == uid);
if (!Equals(existingPair, default(KeyValuePair<UserData, Pair>)))
{
return existingPair.Value;
}
return null;
}
public void AddUserPair(UserFullPairDto dto)
{
if (!_allClientPairs.ContainsKey(dto.User))