diff --git a/src/libs/Pusher/pusher.js b/src/libs/Pusher/pusher.js index 43fde187d00b..4f2b63d36c0c 100644 --- a/src/libs/Pusher/pusher.js +++ b/src/libs/Pusher/pusher.js @@ -320,6 +320,11 @@ function sendEvent(channelName, eventName, payload) { return; } + if (shouldForceOffline) { + Log.info('[Pusher] Ignoring a Send event because shouldForceOffline = true'); + return; + } + socket.send_event(eventName, payload, channelName); }