From a6ee44c38fabbbcef4d08fedb403f6e48dabf553 Mon Sep 17 00:00:00 2001 From: Melvin Langvik Date: Thu, 13 Apr 2023 14:35:08 +0200 Subject: [PATCH] Outofofficenote hotfix --- TeamFiltration/TeamFiltration/Modules/Enumerate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TeamFiltration/TeamFiltration/Modules/Enumerate.cs b/TeamFiltration/TeamFiltration/Modules/Enumerate.cs index b4aa253..8fbe0f0 100644 --- a/TeamFiltration/TeamFiltration/Modules/Enumerate.cs +++ b/TeamFiltration/TeamFiltration/Modules/Enumerate.cs @@ -71,7 +71,7 @@ public static async Task ValidUserWrapperTeams(TeamsHandler teamsHandler, //check list and add if (!_teamsObjectIds.Contains(validUser.objectId)) { - if (validUser.Outofofficenote != null) + if (!string.IsNullOrEmpty(validUser.Outofofficenote?.message)) _databaseHandle.WriteLog(new Log("ENUM", $"{username} valid (OutOfOffice message found)!", "")); else _databaseHandle.WriteLog(new Log("ENUM", $"{username} valid!", ""));