do not open notes popup on connection when enabled

This commit is contained in:
rootdarkarchon
2023-01-29 21:54:13 +01:00
parent 6b4359c0c2
commit e00804b2ff
3 changed files with 5 additions and 4 deletions

View File

@@ -108,11 +108,12 @@ public class PairManager : IDisposable
RecreateLazy();
}
public void AddUserPair(UserPairDto dto)
public void AddUserPair(UserPairDto dto, bool addToLastAddedUser = true)
{
if (!_allClientPairs.ContainsKey(dto.User)) _allClientPairs[dto.User] = _pairFactory.Create();
_allClientPairs[dto.User].UserPair = dto;
LastAddedUser = _allClientPairs[dto.User];
if (addToLastAddedUser)
LastAddedUser = _allClientPairs[dto.User];
_allClientPairs[dto.User].ApplyLastReceivedData();
RecreateLazy();
}