fix(gateway): allow Control UI chat without node
This commit is contained in:
@@ -134,21 +134,6 @@ export const chatHandlers: GatewayRequestHandlers = {
|
|||||||
client,
|
client,
|
||||||
isWebchatConnect,
|
isWebchatConnect,
|
||||||
}) => {
|
}) => {
|
||||||
if (
|
|
||||||
client &&
|
|
||||||
isWebchatConnect(client.connect) &&
|
|
||||||
!context.hasConnectedMobileNode()
|
|
||||||
) {
|
|
||||||
respond(
|
|
||||||
false,
|
|
||||||
undefined,
|
|
||||||
errorShape(
|
|
||||||
ErrorCodes.UNAVAILABLE,
|
|
||||||
"web chat disabled: no connected iOS/Android nodes",
|
|
||||||
),
|
|
||||||
);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!validateChatSendParams(params)) {
|
if (!validateChatSendParams(params)) {
|
||||||
respond(
|
respond(
|
||||||
false,
|
false,
|
||||||
|
|||||||
Reference in New Issue
Block a user