Skip to content
Snippets Groups Projects
Commit ea388604 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Merge pull request #2120 from RocketChat/hotfix/outgoing-hooks-on-specific-public-channels

Allow send hooks from a specific public channel
parents bfbd810b e399653e
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,12 @@ ExecuteTriggers = (message, room) ->
if triggers.__any?
triggersToExecute.push trigger for key, trigger of triggers.__any
if triggers['#'+room._id]?
triggersToExecute.push trigger for key, trigger of triggers['#'+room._id]
if room._id isnt room.name and triggers['#'+room.name]?
triggersToExecute.push trigger for key, trigger of triggers['#'+room.name]
else
if triggers['#'+room._id]?
triggersToExecute.push trigger for key, trigger of triggers['#'+room._id]
......
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