aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/SessionController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Controllers/SessionController.cs')
-rw-r--r--Jellyfin.Api/Controllers/SessionController.cs7
1 files changed, 0 insertions, 7 deletions
diff --git a/Jellyfin.Api/Controllers/SessionController.cs b/Jellyfin.Api/Controllers/SessionController.cs
index 34dfb6ce7..14686222b 100644
--- a/Jellyfin.Api/Controllers/SessionController.cs
+++ b/Jellyfin.Api/Controllers/SessionController.cs
@@ -323,13 +323,6 @@ namespace Jellyfin.Api.Controllers
[FromRoute, Required] string sessionId,
[FromBody, Required] MessageCommand command)
{
-
- // Need to check if message.Text is null, since [Required] can't be applied to properties of a deserialized object.
- if (string.IsNullOrWhiteSpace(command.Text))
- {
- throw new ArgumentNullException("Message Text may not be empty.");
- }
-
var nullCorrectedCommand = new MessageCommand
{
Header = string.IsNullOrWhiteSpace(command.Header) ? "Message from Server" : command.Header,