You should read the license, it seems somewhat insane to be honest: https://github.com/mattermost/mattermost/blob/master/LICENSE...
It is AGPL 3.0, except they give you slightly more rights with a promise not to enforce certain provisions in certain circumstances.
The concept of MIT licensing a compiled software artifact, but not the code used to generate the artifact, is also extremely strange.
You don't need to note the commercial licensing option in the license itself; it's irrelevant to that grant. You just state that elsewhere.