aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/SessionController.cs
diff options
context:
space:
mode:
authorBrianCArnold <trenchie@trenchie.us>2021-03-31 01:24:38 -0400
committerGitHub <noreply@github.com>2021-03-31 01:24:38 -0400
commit4fa2a32d81e263ef51140e2ae8259a02fdfb0d7d (patch)
tree6e69f60d970b6af19b5abfaec03527414c35cca3 /Jellyfin.Api/Controllers/SessionController.cs
parentaf03b280bc91f65712af2cc854e8bf1ad349748a (diff)
Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Diffstat (limited to 'Jellyfin.Api/Controllers/SessionController.cs')
-rw-r--r--Jellyfin.Api/Controllers/SessionController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/SessionController.cs b/Jellyfin.Api/Controllers/SessionController.cs
index 1981e213e..7bd0b6918 100644
--- a/Jellyfin.Api/Controllers/SessionController.cs
+++ b/Jellyfin.Api/Controllers/SessionController.cs
@@ -325,10 +325,10 @@ namespace Jellyfin.Api.Controllers
{
if (string.IsNullOrWhiteSpace(command.Header))
{
- command.Header = "Message from Server";
+ command.Header = "Message from Server";
}
- _sessionManager.SendMessageCommand(RequestHelpers.GetSession(_sessionManager, _authContext, Request).Id, sessionId, nullCorrectedCommand, CancellationToken.None);
+ _sessionManager.SendMessageCommand(RequestHelpers.GetSession(_sessionManager, _authContext, Request).Id, sessionId, command, CancellationToken.None);
return NoContent();
}