mirror of
https://github.com/bitwarden/server
synced 2025-12-17 08:43:27 +00:00
PM-10600: Revert global push notifications
This commit is contained in:
@@ -72,12 +72,7 @@ public class PushController : Controller
|
||||
{
|
||||
CheckUsage();
|
||||
|
||||
if (model.Global)
|
||||
{
|
||||
await _pushNotificationService.SendPayloadToEveryoneAsync(model.Type, model.Payload,
|
||||
Prefix(model.Identifier), Prefix(model.DeviceId), model.ClientType);
|
||||
}
|
||||
else if (!string.IsNullOrWhiteSpace(model.UserId))
|
||||
if (!string.IsNullOrWhiteSpace(model.UserId))
|
||||
{
|
||||
await _pushNotificationService.SendPayloadToUserAsync(Prefix(model.UserId),
|
||||
model.Type, model.Payload, Prefix(model.Identifier), Prefix(model.DeviceId), model.ClientType);
|
||||
|
||||
Reference in New Issue
Block a user