mirror of
https://github.com/bitwarden/server.git
synced 2025-04-23 05:55:13 -05:00
push fixes and additions
This commit is contained in:
parent
89efb07eed
commit
f2aa568e86
@ -565,6 +565,9 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
await _organizationUserRepository.CreateAsync(orgUser);
|
await _organizationUserRepository.CreateAsync(orgUser);
|
||||||
|
|
||||||
|
// push
|
||||||
|
await _pushService.PushSyncOrgKeysAsync(signup.Owner.Id);
|
||||||
|
|
||||||
return new Tuple<Organization, OrganizationUser>(organization, orgUser);
|
return new Tuple<Organization, OrganizationUser>(organization, orgUser);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -64,7 +64,7 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
public async Task PushSyncFolderCreateAsync(Folder folder)
|
public async Task PushSyncFolderCreateAsync(Folder folder)
|
||||||
{
|
{
|
||||||
await PushFolderAsync(folder, PushType.SyncCipherCreate);
|
await PushFolderAsync(folder, PushType.SyncFolderCreate);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task PushSyncFolderUpdateAsync(Folder folder)
|
public async Task PushSyncFolderUpdateAsync(Folder folder)
|
||||||
@ -148,7 +148,7 @@ namespace Bit.Core.Services
|
|||||||
{
|
{
|
||||||
var message = new SyncUserPushNotification
|
var message = new SyncUserPushNotification
|
||||||
{
|
{
|
||||||
Type = PushType.SyncOrgKeys,
|
Type = type,
|
||||||
UserId = userId,
|
UserId = userId,
|
||||||
Date = DateTime.UtcNow,
|
Date = DateTime.UtcNow,
|
||||||
Aps = new PushNotification.AppleData { ContentAvailable = 1 }
|
Aps = new PushNotification.AppleData { ContentAvailable = 1 }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user