From d07a3e09c97a615ce8ee28aa44c6b4f6a3d9f3a4 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 25 Jun 2022 00:57:17 +0200 Subject: Support mattermost v7 (#1852) 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(-) (limited to 'bridge') diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 91324be1..6151dbdf 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 } -- cgit v1.2.3