Skip to content

Commit

Permalink
Merge pull request #28786 from akinwale/task-28063
Browse files Browse the repository at this point in the history
fix: "user is typing" event sent when force offline mode is enabled
  • Loading branch information
neil-marcellini authored Oct 4, 2023
2 parents e325541 + 7d3cd33 commit 2f58b37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libs/Pusher/pusher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2f58b37

Please sign in to comment.