fix adding sending data client shouldn't receive

This commit is contained in:
rootdarkarchon
2023-01-29 20:41:07 +01:00
parent 04ecbd314d
commit b717e824b2

View File

@@ -223,7 +223,7 @@ public partial class MareHub
await Clients.User(user.UID).Client_UserAddClientPair(userPairResponse).ConfigureAwait(false); await Clients.User(user.UID).Client_UserAddClientPair(userPairResponse).ConfigureAwait(false);
// check if other user is online // check if other user is online
if (otherIdent == null) return; if (otherIdent == null || otherEntry == null) return;
// send push with update to other user if other user is online // send push with update to other user if other user is online
await Clients.User(otherUser.UID).Client_UserAddClientPair(new UserPairDto(user.ToUserData(), otherPerm, ownPerm)).ConfigureAwait(false); await Clients.User(otherUser.UID).Client_UserAddClientPair(new UserPairDto(user.ToUserData(), otherPerm, ownPerm)).ConfigureAwait(false);