Fixed certain redemptions
This commit is contained in:
parent
0932c1c38e
commit
48dd6858a1
@ -1,3 +1,4 @@
|
|||||||
|
using System.Text.Json;
|
||||||
using CommonSocketLibrary.Abstract;
|
using CommonSocketLibrary.Abstract;
|
||||||
using CommonSocketLibrary.Common;
|
using CommonSocketLibrary.Common;
|
||||||
using HermesSocketLibrary.Socket.Data;
|
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<string>())}]");
|
_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<string>())}]");
|
||||||
var json = message.Data?.ToString();
|
var json = message.Data?.ToString();
|
||||||
if (message.Request.Type == null || json == null)
|
if (message.Request.Type == null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,6 @@ namespace TwitchChatTTS.Hermes.Socket.Requests
|
|||||||
|
|
||||||
public void Fulfill(string type, string requestId, string data, IDictionary<string, object>? requestData)
|
public void Fulfill(string type, string requestId, string data, IDictionary<string, object>? requestData)
|
||||||
{
|
{
|
||||||
if (data == null)
|
|
||||||
return;
|
|
||||||
if (!_acknowledgements.TryGetValue(type, out var ack))
|
if (!_acknowledgements.TryGetValue(type, out var ack))
|
||||||
{
|
{
|
||||||
_logger.Warning($"Found unknown request type when acknowledging [type: {type}]");
|
_logger.Warning($"Found unknown request type when acknowledging [type: {type}]");
|
||||||
|
Loading…
Reference in New Issue
Block a user