1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

PM-10600: Explicit group names

This commit is contained in:
Maciej Zieniuk 2024-10-22 11:26:02 +01:00
parent 36c8dfa0b8
commit 7e0c0675ff
No known key found for this signature in database
GPG Key ID: 9CACE59F1272ACD9

View File

@ -89,13 +89,13 @@ public class NotificationsHub : Microsoft.AspNetCore.SignalR.Hub
public static string GetUserGroup(Guid userId, ClientType clientType)
{
return $"{userId}_{clientType}";
return $"UserClientType_{userId}_{clientType}";
}
public static string GetOrganizationGroup(Guid organizationId, ClientType? clientType = null)
{
return clientType is not ClientType.All
? $"Organization_{organizationId}"
: $"Organization_{organizationId}_{clientType}";
: $"OrganizationClientType_{organizationId}_{clientType}";
}
}