Support mattermost 4.x as api4 should be stable (mattermost)

This commit is contained in:
Wim 2017-09-28 22:34:44 +02:00
parent c7e336efd9
commit 155ae80d22

View File

@ -895,9 +895,7 @@ func supportedVersion(version string) bool {
if strings.HasPrefix(version, "3.8.0") || if strings.HasPrefix(version, "3.8.0") ||
strings.HasPrefix(version, "3.9.0") || strings.HasPrefix(version, "3.9.0") ||
strings.HasPrefix(version, "3.10.0") || strings.HasPrefix(version, "3.10.0") ||
strings.HasPrefix(version, "4.0") || strings.HasPrefix(version, "4.") {
strings.HasPrefix(version, "4.1") ||
strings.HasPrefix(version, "4.2") {
return true return true
} }
return false return false