Changing packet dispatch, packets dying on gateway and not being relayed, missed a nullable
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user