From 7afc95061bf2bf85fd98042620045dc73a0a1303 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 2 Jan 2017 01:26:44 +0100 Subject: [PATCH] Added orgname to subject for notifications --- Logic/Communications/Payload/NotificationPayload.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Logic/Communications/Payload/NotificationPayload.cs b/Logic/Communications/Payload/NotificationPayload.cs index 5a1307f6..6a82f804 100644 --- a/Logic/Communications/Payload/NotificationPayload.cs +++ b/Logic/Communications/Payload/NotificationPayload.cs @@ -128,6 +128,12 @@ namespace Swarmops.Logic.Communications.Payload result[CommRenderPart.SenderName] = SystemSettings.AdminNotificationSender; // TODO: Make dependent on an enum result[CommRenderPart.SenderMail] = SystemSettings.AdminNotificationAddress; + if (Strings.ContainsKey(NotificationString.OrganizationName)) + { + result[CommRenderPart.Subject] = "[" + Strings[NotificationString.OrganizationName] + "] " + + result[CommRenderPart.Subject]; + } + return result; }