Skip to content

Commit

Permalink
Notifier: fix notification to show name, not desc
Browse files Browse the repository at this point in the history
It was showing description instead of name.

Cherry-picked from upstream PR:
MindFlavor#14
  • Loading branch information
Manuel5cc authored and knocte committed Jan 10, 2024
1 parent 10a5a51 commit 861d5ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jellyfin.Plugins.Telegram/Notifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand All @@ -77,4 +77,4 @@ private static bool IsValid(TelegramOptions options)
&& !string.IsNullOrEmpty(options.ChatId);
}
}
}
}

0 comments on commit 861d5ff

Please sign in to comment.