mirror of
https://github.com/bitwarden/server.git
synced 2025-07-05 10:02:47 -05:00
PM-10600: Organization push notifications not sending to mobile device from self-hosted.
Self-hosted instance uses relay to register the mobile device against Bitwarden Cloud Api. Only the self-hosted server knows client's organization membership, which means it needs to pass in the organization id's information to the relay. Similarly, for Bitwarden Cloud, the organizaton id will come directly from the server.
This commit is contained in:
@ -39,7 +39,7 @@ public class PushController : Controller
|
||||
{
|
||||
CheckUsage();
|
||||
await _pushRegistrationService.CreateOrUpdateRegistrationAsync(model.PushToken, Prefix(model.DeviceId),
|
||||
Prefix(model.UserId), Prefix(model.Identifier), model.Type);
|
||||
Prefix(model.UserId), Prefix(model.Identifier), model.Type, model.OrganizationIds);
|
||||
}
|
||||
|
||||
[HttpPost("delete")]
|
||||
|
Reference in New Issue
Block a user