From e2df7090038d2880cd78921185bc83a19dad3684 Mon Sep 17 00:00:00 2001 From: Infi Date: Sat, 20 Sep 2025 17:21:08 +0200 Subject: [PATCH] - Downgrade deps to fix current connection reset error --- ChatTwo/ChatTwo.csproj | 2 +- ChatTwo/Http/RouteController.cs | 6 ++---- ChatTwo/packages.lock.json | 12 ++++++------ 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/ChatTwo/ChatTwo.csproj b/ChatTwo/ChatTwo.csproj index 2d64671..85dde5c 100755 --- a/ChatTwo/ChatTwo.csproj +++ b/ChatTwo/ChatTwo.csproj @@ -18,7 +18,7 @@ - + diff --git a/ChatTwo/Http/RouteController.cs b/ChatTwo/Http/RouteController.cs index 4226e25..e593b92 100644 --- a/ChatTwo/Http/RouteController.cs +++ b/ChatTwo/Http/RouteController.cs @@ -1,7 +1,5 @@ using System.Collections.Concurrent; -using System.Net; using System.Web; -using ChatTwo.Code; using ChatTwo.Http.MessageProtocol; using ChatTwo.Util; using Lumina.Data.Files; @@ -201,14 +199,14 @@ public class RouteController return; var channel = JsonConvert.DeserializeObject(ctx.Request.DataAsString, JsonSettings); - if (!Enum.IsDefined((InputChannel)channel.Channel)) + if (!Enum.IsDefined(channel.Channel)) { ctx.Response.StatusCode = 400; await ctx.Response.Send(JsonConvert.SerializeObject(new ErrorResponse("Invalid channel received."))); return; } - await Plugin.Framework.RunOnFrameworkThread(() => { Plugin.ChatLogWindow.SetChannel((InputChannel)channel.Channel); }); + await Plugin.Framework.RunOnFrameworkThread(() => { Plugin.ChatLogWindow.SetChannel(channel.Channel); }); ctx.Response.StatusCode = 201; await ctx.Response.Send(JsonConvert.SerializeObject(new OkResponse("Channel switch was initiated."))); diff --git a/ChatTwo/packages.lock.json b/ChatTwo/packages.lock.json index a3ff553..acbadf0 100644 --- a/ChatTwo/packages.lock.json +++ b/ChatTwo/packages.lock.json @@ -50,12 +50,12 @@ }, "Watson.Lite": { "type": "Direct", - "requested": "[6.3.13, )", - "resolved": "6.3.13", - "contentHash": "AoDQXFPTf/C38Afj4A1p+Siw46sqgr6SOZV6tL2gWmfoAAuiCJ3DymCD9OcY2ZasvvDOQk2NDNSLyXthkS5xhg==", + "requested": "[6.3.9, )", + "resolved": "6.3.9", + "contentHash": "sDigTY8D8V7W38lfzJGiigf7xZEfp3Kw7XE7VJyeNO9mxOkv+w8HcmCsmORMDhsipDqGU0gMEsPOqORmZzRaWg==", "dependencies": { "CavemanTcp": "2.0.9", - "Watson.Core": "6.3.13" + "Watson.Core": "6.3.9" } }, "CavemanTcp": { @@ -148,8 +148,8 @@ }, "Watson.Core": { "type": "Transitive", - "resolved": "6.3.13", - "contentHash": "f1qVBxEOYvRGNVfqoQDBuRK5lMsfYRpsWxv9qRiGH22eRtXvvaloQbxeouVtd1X2oiamdICPNAAhBVj/KYZ9Mw==", + "resolved": "6.3.9", + "contentHash": "hGoadE4SLbko8yxhx5+nxGV8lEVgEquNli87lN6/eOTQEJNpK/Cs+OF0etTgFKZ4p0u5ivetoDxl82Lg6oHZEg==", "dependencies": { "IpMatcher": "1.0.5", "RegexMatcher": "1.0.9",