From 861d5ff8a4720fc1c98bf9abf83253505a5942c7 Mon Sep 17 00:00:00 2001 From: Manuel Date: Fri, 28 Jul 2023 14:52:55 +0200 Subject: [PATCH] Notifier: fix notification to show name, not desc It was showing description instead of name. Cherry-picked from upstream PR: https://github.com/MindFlavor/Jellyfin.Plugins.Telegram/pull/14 --- Jellyfin.Plugins.Telegram/Notifier.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jellyfin.Plugins.Telegram/Notifier.cs b/Jellyfin.Plugins.Telegram/Notifier.cs index cafd885..7035a75 100644 --- a/Jellyfin.Plugins.Telegram/Notifier.cs +++ b/Jellyfin.Plugins.Telegram/Notifier.cs @@ -52,7 +52,7 @@ public async Task SendNotification(UserNotification request, CancellationToken c await Notifier.SendNotification( _httpClientFactory, options.Token, options.ChatId, options.SilentNotificationEnabled, - string.IsNullOrEmpty(request.Description) ? request.Name : request.Description + string.IsNullOrEmpty(request.Name) ? request.Name : request.Description ); } @@ -77,4 +77,4 @@ private static bool IsValid(TelegramOptions options) && !string.IsNullOrEmpty(options.ChatId); } } -} \ No newline at end of file +}