Support mattermost v7 ()

Mattermost api (almost) didn't change between v6.7.x and v7.0
Everything should just work
This commit is contained in:
Wim 2022-06-25 00:57:17 +02:00 committed by GitHub
parent 4649876956
commit d07a3e09c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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