Skip to content

Commit

Permalink
Fix #3130
Browse files Browse the repository at this point in the history
Hide "edited by" status in search results
  • Loading branch information
marceloschmidt committed May 4, 2016
1 parent e35e5c6 commit 7b72d6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/methods/messageSearch.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Meteor.methods
query.rid = rid
try
if Meteor.call('canAccessRoom', rid, this.userId) isnt false
if not RocketChat.settings.get 'Message_ShowEditedStatus'
options.fields = { 'editedAt': 0 }
result.messages = RocketChat.models.Messages.find(query, options).fetch()


Expand Down

0 comments on commit 7b72d6a

Please sign in to comment.