Skip to content
Snippets Groups Projects
Commit be0ce09a authored by Tainan Felipe's avatar Tainan Felipe
Browse files

pass message for allowed functions

parent a5ddb4bd
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,9 @@ export const processForHTML5ServerOnly = fn => (message, ...args) => {
const { envelope } = message;
const { routing } = envelope;
const shouldSkip = routing.msgType === MSG_DIRECT_TYPE && routing.userId !== NODE_USER;
if (shouldSkip) return () => { };
return fn(...args);
return fn(message, ...args);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment