Skip to content
Snippets Groups Projects
Commit 90b30bc9 authored by Curtis G's avatar Curtis G Committed by GitHub
Browse files

Fix running afterCreateChannel callbacks

The only place where afterCreateChannel callback is added is 
https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/rocketchat-piwik/client/trackEvents.js#L29
where the callback has the created room as the only argument.
parent ddda74d0
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ RocketChat.createRoom = function(type, name, owner, members, readOnly, extraData
if (type === 'c') {
Meteor.defer(() => {
RocketChat.callbacks.run('afterCreateChannel', owner, room);
RocketChat.callbacks.run('afterCreateChannel', room);
});
}
......
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