mirror of
https://github.com/bitwarden/server
synced 2025-12-16 08:13:33 +00:00
Changed all C# control flow block statements to include space between keyword and open paren
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Bit.Notifications
|
||||
IHubContext<NotificationsHub> hubContext, CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
var notification = JsonConvert.DeserializeObject<PushNotificationData<object>>(notificationJson);
|
||||
switch(notification.Type)
|
||||
switch (notification.Type)
|
||||
{
|
||||
case PushType.SyncCipherUpdate:
|
||||
case PushType.SyncCipherCreate:
|
||||
@@ -22,12 +22,12 @@ namespace Bit.Notifications
|
||||
var cipherNotification =
|
||||
JsonConvert.DeserializeObject<PushNotificationData<SyncCipherPushNotification>>(
|
||||
notificationJson);
|
||||
if(cipherNotification.Payload.UserId.HasValue)
|
||||
if (cipherNotification.Payload.UserId.HasValue)
|
||||
{
|
||||
await hubContext.Clients.User(cipherNotification.Payload.UserId.ToString())
|
||||
.SendAsync("ReceiveMessage", cipherNotification, cancellationToken);
|
||||
}
|
||||
else if(cipherNotification.Payload.OrganizationId.HasValue)
|
||||
else if (cipherNotification.Payload.OrganizationId.HasValue)
|
||||
{
|
||||
await hubContext.Clients.Group(
|
||||
$"Organization_{cipherNotification.Payload.OrganizationId}")
|
||||
|
||||
Reference in New Issue
Block a user