Skip to content

Commit

Permalink
Merge pull request #5 from alfonsofiz/alfonsofiz-less_message_options
Browse files Browse the repository at this point in the history
Show Less Message Options
  • Loading branch information
leolara authored Sep 5, 2016
2 parents f4ca0c8 + c11b142 commit 838a172
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rocketchat-lib/client/MessageAction.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ RocketChat.MessageAction = new class
unless config?.id
return false

unless _.contains(['pin-message','unpin-message','reaction-message','copy','Report Abuse'], config.id)
return false

Tracker.nonreactive ->
btns = buttons.get()
btns[config.id] = config
Expand Down

0 comments on commit 838a172

Please sign in to comment.