Hi @tpro,
I think if you change the Mattermost settings directly in the gitlab.rb file, they should not be lost when you update GitLab.
If you use the System Console to edit Mattermost settings, we recommend backing up your Mattermost config.json file before updating, and then restoring it afterwards.