Mattermost, Inc.

Allow editing of messages only for a given time

You should be able to set a duration in which you are able to edit your own messages. This way you can correct typos but can’t change whole content of old messages.