Support mattermost v7 (#1852)

Mattermost api (almost) didn't change between v6.7.x and v7.0
Everything should just work
pull/1853/head
Wim 2 years ago committed by GitHub
parent 4649876956
commit d07a3e09c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,7 +52,7 @@ func (b *Bmattermost) Connect() error {
return nil
}
if strings.HasPrefix(b.getVersion(), "6.") {
if strings.HasPrefix(b.getVersion(), "6.") || strings.HasPrefix(b.getVersion(), "7.") {
if !b.v6 {
b.v6 = true
}

Loading…
Cancel
Save