Messages larger than 4000 characters

Hello Mattermost team.

We want to increase the message size. Currently there are 4000 characters per message.

Mattermost Version: 5.39.1
Database Schema Version: 5.39.1
Database: postgres

The following was done:
ALTER TABLE Posts ALTER COLUMN Message TYPE VARCHAR;

Unfortunately the error persists.
“Your message is too long. Character count: 6412/4000.”
“mattermost: {“level”:“info”,“ts”:1636223178.5157816,“caller”:“sqlstore/post_store.go:2115”,“msg”:“Post.Message has size restrictions”,“max_characters”:4000,“max_bytes”:0}”

What can you do?

Many thanks for your help!
Greetings
Dave

Looking at the code, the max was hardcoded to be 4000.

That’s why I followed this step:

Is there a solution to display more than 4000 characters?