identity: fix delete subscription handling

This commit is contained in:
Abdullah Atta
2025-09-26 11:12:09 +05:00
committed by Abdullah Atta
parent 500a64de18
commit 6304d8178f

View File

@@ -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)