1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 16:12:49 -05: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

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}";
}
}