From 306de08f2259ec1adc46dcfd3f8fbaa22a148cbe Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 25 Jun 2022 00:49:28 +0200 Subject: [PATCH] Support mattermost v7 Mattermost api (almost) didn't change between v6.7.x and v7.0 Everything should just work --- bridge/mattermost/mattermost.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 91324be1d9..6151dbdf39 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -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 }