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
d0d559fc
Commit
d0d559fc
authored
9 years ago
by
Rodrigo Nascimento
Browse files
Options
Downloads
Patches
Plain Diff
Allow save mentions to 'all'
parent
7246f047
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/rocketchat-mentions/server.coffee
+7
-1
7 additions, 1 deletion
packages/rocketchat-mentions/server.coffee
with
7 additions
and
1 deletion
packages/rocketchat-mentions/server.coffee
+
7
−
1
View file @
d0d559fc
...
...
@@ -13,7 +13,13 @@ class MentionsServer
mentions
=
_
.
unique
mentions
verifiedMentions
=
[]
mentions
.
forEach
(
mention
)
->
verifiedMention
=
Meteor
.
users
.
findOne
({
username
:
mention
},
{
fields
:
{
_id
:
1
,
username
:
1
}})
if
mention
is
'all'
verifiedMention
=
_id
:
mention
username
:
mention
else
verifiedMention
=
Meteor
.
users
.
findOne
({
username
:
mention
},
{
fields
:
{
_id
:
1
,
username
:
1
}})
verifiedMentions
.
push
verifiedMention
if
verifiedMention
?
if
verifiedMentions
.
length
isnt
0
message
.
mentions
=
verifiedMentions
...
...
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