@ -115,15 +115,18 @@ namespace NzbDrone.Core.Notifications.Slack
Attachments = attachments
};
if (icon.IsNotNullOrWhiteSpace())
{
// Set the correct icon based on the value
if (icon.StartsWith(":") && icon.EndsWith(":"))
payload.IconEmoji = icon;
}
else if (icon.IsNotNullOrWhiteSpace())
else
payload.IconUrl = icon;
return payload;