Mattermost, Inc.

[SOLVED] Removing "(edited)" indicator from posts?

I would like to remove the “(edited)” label which appears when a post is edited (everyone on my team really doesn’t like it…). Does anyone know how to do this?

Simplest way would probably to modify this method(untested):

https://github.com/mattermost/platform/blob/master/webapp/components/post_view/components/post_message_view.jsx#L76

Into:

renderEditedIndicator() {
        return null;
}

You would have to compile it from the sources.

If you don’t want or can’t compile from sources, you can adventure your self with the .js/.js.map files to find that and modify it there but it would be a lot more work, specially opening the files as they are huge.

Thank you so much, I really appreciate the help. I will give it a shot.

Sure, let me know if that works for you :wink:

UPDATE:

I tried editing the source code and compiling, but I kept running into errors, so I ended up editing the “main.09a5a5a3fcdf41cf4c08.js” file and simply changed the opacity to 0 (good enough for now) in the following place:

.post-edited-indicator{filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:.0;font-size:.87em}.post

Thanks again for the help :slight_smile: