1
0
mirror of https://github.com/bitwarden/server synced 2025-12-22 03:03:33 +00:00

amazon ses mail delivery service

This commit is contained in:
Kyle Spearrin
2019-03-13 16:19:00 -04:00
parent 8d54442173
commit 7e920b955c
12 changed files with 68 additions and 26 deletions

View File

@@ -58,9 +58,9 @@ namespace Bit.Core.Services
}
var cats = new List<string> { "Bitwarden Server" };
if(message.MetaData?.ContainsKey("SendGridCategories") ?? false)
if(!string.IsNullOrWhiteSpace(message.Category))
{
cats.AddRange(message.MetaData["SendGridCategories"] as List<string>);
cats.Add(message.Category);
}
sendGridMessage.AddCategories(cats);