From 155ae80d2228803879ceddf6dbf51755ea32a442 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 28 Sep 2017 22:34:44 +0200 Subject: [PATCH] Support mattermost 4.x as api4 should be stable (mattermost) --- matterclient/matterclient.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index 37d7bc53..0b5f0a07 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -895,9 +895,7 @@ func supportedVersion(version string) bool { if strings.HasPrefix(version, "3.8.0") || strings.HasPrefix(version, "3.9.0") || strings.HasPrefix(version, "3.10.0") || - strings.HasPrefix(version, "4.0") || - strings.HasPrefix(version, "4.1") || - strings.HasPrefix(version, "4.2") { + strings.HasPrefix(version, "4.") { return true } return false