summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--matterclient/matterclient.go3
2 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index c75f9d38..cc897d1b 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,7 @@ Has a REST API.
# Requirements
Accounts to one of the supported bridges
-* [Mattermost](https://github.com/mattermost/platform/) 3.5.x - 3.10.x
+* [Mattermost](https://github.com/mattermost/platform/) 3.5.x - 3.10.x, 4.0.x
* [IRC](http://www.mirc.com/servers.html)
* [XMPP](https://jabber.org)
* [Gitter](https://gitter.im)
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index d389f9bc..8c2ebbb6 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -833,7 +833,8 @@ func supportedVersion(version string) bool {
strings.HasPrefix(version, "3.7.0") ||
strings.HasPrefix(version, "3.8.0") ||
strings.HasPrefix(version, "3.9.0") ||
- strings.HasPrefix(version, "3.10.0") {
+ strings.HasPrefix(version, "3.10.0") ||
+ strings.HasPrefix(version, "4.0") {
return true
}
return false