identity: fix delete subscription handling

This commit is contained in:
Abdullah Atta authored and Abdullah Atta committed 2025-10-07 16:44:15 +05:00
1 parent 500a64de18
commit 6304d8178f
1 file changed
+1 -1
@@ -32,7 +32,7 @@ namespace Streetwriters.Identity.MessageHandlers
{
var user = await userManager.FindByIdAsync(message.UserId);
var client = Clients.FindClientByAppId(message.AppId);
if (client != null || user != null) return;
if (client == null || user == null) return;
IdentityUserClaim<string> statusClaim = user.Claims.FirstOrDefault((c) => c.ClaimType == $"{client.Id}:status");
if (statusClaim != null)