From 48dd6858a16f84578ae2c6a8638f8914dd47fa0c Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 15 Nov 2024 02:29:23 +0000 Subject: [PATCH] Fixed certain redemptions --- Hermes/Socket/Handlers/RequestAckHandler.cs | 3 ++- Hermes/Socket/Requests/RequestAckManager.cs | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Hermes/Socket/Handlers/RequestAckHandler.cs b/Hermes/Socket/Handlers/RequestAckHandler.cs index 32359f7..6d5bcda 100644 --- a/Hermes/Socket/Handlers/RequestAckHandler.cs +++ b/Hermes/Socket/Handlers/RequestAckHandler.cs @@ -1,3 +1,4 @@ +using System.Text.Json; using CommonSocketLibrary.Abstract; using CommonSocketLibrary.Common; using HermesSocketLibrary.Socket.Data; @@ -35,7 +36,7 @@ namespace TwitchChatTTS.Hermes.Socket.Handlers _logger.Debug($"Received a Hermes request message [type: {message.Request.Type}][data: {string.Join(',', message.Request.Data?.Select(entry => entry.Key + '=' + entry.Value) ?? Array.Empty())}]"); var json = message.Data?.ToString(); - if (message.Request.Type == null || json == null) + if (message.Request.Type == null) { return; } diff --git a/Hermes/Socket/Requests/RequestAckManager.cs b/Hermes/Socket/Requests/RequestAckManager.cs index 3324344..6d91d0c 100644 --- a/Hermes/Socket/Requests/RequestAckManager.cs +++ b/Hermes/Socket/Requests/RequestAckManager.cs @@ -15,8 +15,6 @@ namespace TwitchChatTTS.Hermes.Socket.Requests public void Fulfill(string type, string requestId, string data, IDictionary? requestData) { - if (data == null) - return; if (!_acknowledgements.TryGetValue(type, out var ack)) { _logger.Warning($"Found unknown request type when acknowledging [type: {type}]");