Skip to content

Commit

Permalink
Outofofficenote hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
FlangvikOld committed Apr 13, 2023
1 parent 539a69e commit a6ee44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TeamFiltration/TeamFiltration/Modules/Enumerate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static async Task<bool> 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!", ""));
Expand Down

0 comments on commit a6ee44c

Please sign in to comment.