mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 17:42:49 -05:00
Ps 1904 (#2439)
* Add self host notification launch settings * Exclude current context from push for password updates This is needed to allow the current context to process a key rotation if one is being done. Does not change any other call to `PushLogOut`. * Revert inverted exclude logic This exclude is referring to exempting the requesting client from the notification push.
This commit is contained in:
@ -114,12 +114,12 @@ public class AzureQueuePushNotificationService : IPushNotificationService
|
||||
await PushUserAsync(userId, PushType.SyncSettings);
|
||||
}
|
||||
|
||||
public async Task PushLogOutAsync(Guid userId)
|
||||
public async Task PushLogOutAsync(Guid userId, bool excludeCurrentContext = false)
|
||||
{
|
||||
await PushUserAsync(userId, PushType.LogOut);
|
||||
await PushUserAsync(userId, PushType.LogOut, excludeCurrentContext);
|
||||
}
|
||||
|
||||
private async Task PushUserAsync(Guid userId, PushType type)
|
||||
private async Task PushUserAsync(Guid userId, PushType type, bool excludeCurrentContext = false)
|
||||
{
|
||||
var message = new UserPushNotification
|
||||
{
|
||||
@ -127,7 +127,7 @@ public class AzureQueuePushNotificationService : IPushNotificationService
|
||||
Date = DateTime.UtcNow
|
||||
};
|
||||
|
||||
await SendMessageAsync(type, message, false);
|
||||
await SendMessageAsync(type, message, excludeCurrentContext);
|
||||
}
|
||||
|
||||
public async Task PushAuthRequestAsync(AuthRequest authRequest)
|
||||
|
Reference in New Issue
Block a user