summaryrefslogtreecommitdiffstats
path: root/matterclient/matterclient.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-09-28 22:34:44 +0200
committerWim <wim@42.be>2017-09-28 22:34:44 +0200
commit155ae80d2228803879ceddf6dbf51755ea32a442 (patch)
tree762f8c89dcafa41964a50ed286c539369e3381ac /matterclient/matterclient.go
parentc7e336efd9aed62438b1332bcf67d1b86f06b7f2 (diff)
downloadmatterbridge-msglm-155ae80d2228803879ceddf6dbf51755ea32a442.tar.gz
matterbridge-msglm-155ae80d2228803879ceddf6dbf51755ea32a442.tar.bz2
matterbridge-msglm-155ae80d2228803879ceddf6dbf51755ea32a442.zip
Support mattermost 4.x as api4 should be stable (mattermost)
Diffstat (limited to 'matterclient/matterclient.go')
-rw-r--r--matterclient/matterclient.go4
1 files changed, 1 insertions, 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