Skip to content
Snippets Groups Projects
Unverified Commit 7b72d6a5 authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Fix #3130

Hide "edited by" status in search results
parent e35e5c6a
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
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