From 7b72d6a5b39913482878d1056b78e8e7051e8faf Mon Sep 17 00:00:00 2001 From: Marcelo Schmidt Date: Wed, 4 May 2016 17:03:39 -0300 Subject: [PATCH] Fix #3130 Hide "edited by" status in search results --- server/methods/messageSearch.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/methods/messageSearch.coffee b/server/methods/messageSearch.coffee index cad0e36f22dc..253aa3291665 100644 --- a/server/methods/messageSearch.coffee +++ b/server/methods/messageSearch.coffee @@ -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()