1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-06 02:22:49 -05:00

PM-10600: Sending to specific client types for other clients

This commit is contained in:
Maciej Zieniuk
2024-10-22 11:11:55 +01:00
parent 7020565770
commit 6296c1fb1f
7 changed files with 96 additions and 16 deletions

View File

@ -51,6 +51,7 @@ public class SyncNotificationPushNotification
public bool Global { get; set; }
public Guid? UserId { get; set; }
public Guid? OrganizationId { get; set; }
public ClientType ClientType { get; set; }
public DateTime RevisionDate { get; set; }
}

View File

@ -174,6 +174,7 @@ public class AzureQueuePushNotificationService : IPushNotificationService
Global = notification.Global,
UserId = notification.Id,
OrganizationId = notification.Id,
ClientType = notification.ClientType,
RevisionDate = notification.RevisionDate
};

View File

@ -202,6 +202,7 @@ public class NotificationHubPushNotificationService : IPushNotificationService
Global = notification.Global,
UserId = notification.Id,
OrganizationId = notification.Id,
ClientType = notification.ClientType,
RevisionDate = notification.RevisionDate
};

View File

@ -181,6 +181,7 @@ public class NotificationsApiPushNotificationService : BaseIdentityClientService
Global = notification.Global,
UserId = notification.Id,
OrganizationId = notification.Id,
ClientType = notification.ClientType,
RevisionDate = notification.RevisionDate
};

View File

@ -197,6 +197,7 @@ public class RelayPushNotificationService : BaseIdentityClientService, IPushNoti
Global = notification.Global,
UserId = notification.Id,
OrganizationId = notification.Id,
ClientType = notification.ClientType,
RevisionDate = notification.RevisionDate
};