Changing packet dispatch, packets dying on gateway and not being relayed, missed a nullable

This commit is contained in:
dingo
2026-02-28 15:14:36 -05:00
parent 285d67374e
commit d1a555cce7
@@ -158,10 +158,10 @@ public sealed class MessageDispatcher : IMessageDispatcher
if (!remote.HasResponse)
return null;
var payload = remote.ResponsePayload is { } element &&
element.ValueKind is not JsonValueKind.Undefined and not JsonValueKind.Null
JsonElement? payload = remote.ResponsePayload is { } element &&
element.ValueKind is not JsonValueKind.Undefined and not JsonValueKind.Null
? element
: null;
: (JsonElement?)null;
return new ServerMessage(
remote.ResponseType ?? "error",