Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 3a31671a8083d9959fe0e5659a0290e024d49ba6 Author: Wim <wim@42.be> Date: Sun Jul 09 15:15:22 2017 +0000 Add 4.0 support (mattermost) diff --git a/README.md b/README.md index c75f9d3..cc897d1 100644 --- a/README.md +++ b/README.md @@ -307 +307 @@ 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 d389f9b..8c2ebbb 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -8337 +8338 @@ 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