Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
ea388604
Commit
ea388604
authored
9 years ago
by
Rodrigo Nascimento
Browse files
Options
Downloads
Plain Diff
Merge pull request #2120 from RocketChat/hotfix/outgoing-hooks-on-specific-public-channels
Allow send hooks from a specific public channel
parents
bfbd810b
e399653e
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/rocketchat-integrations/server/triggers.coffee
+6
-0
6 additions, 0 deletions
packages/rocketchat-integrations/server/triggers.coffee
with
6 additions
and
0 deletions
packages/rocketchat-integrations/server/triggers.coffee
+
6
−
0
View file @
ea388604
...
...
@@ -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
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment