mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 19:22:45 +00:00
identity: fix delete subscription handling
This commit is contained in:
committed by
Abdullah Atta
parent
500a64de18
commit
6304d8178f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user