mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
don't show shared data from paused people
This commit is contained in:
parent
52d0fa6590
commit
b77954cd57
2 changed files with 17 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue