From 4b31a4146534420017752784bf51846bdd5c7700 Mon Sep 17 00:00:00 2001 From: Haw Loeung Date: Wed, 20 Sep 2023 12:21:17 +1000 Subject: [PATCH] Support for mattermost version 9 --- mm-go-irckit/userbridge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm-go-irckit/userbridge.go b/mm-go-irckit/userbridge.go index a5c4b048..7e8ffd0a 100644 --- a/mm-go-irckit/userbridge.go +++ b/mm-go-irckit/userbridge.go @@ -874,7 +874,7 @@ func (u *User) loginTo(protocol string) error { u.br, err = slack.New(u.v, u.Credentials, u.eventChan, u.addUsersToChannels) case "mattermost": u.eventChan = make(chan *bridge.Event) - if u.v.GetBool("mattermost.ignoreserverversion") || strings.HasPrefix(u.getMattermostVersion(), "7.") || strings.HasPrefix(u.getMattermostVersion(), "8.") { + if u.v.GetBool("mattermost.ignoreserverversion") || strings.HasPrefix(u.getMattermostVersion(), "7.") || strings.HasPrefix(u.getMattermostVersion(), "8.") || strings.HasPrefix(u.getMattermostVersion(), "9.") { u.br, _, err = mattermost.New(u.v, u.Credentials, u.eventChan, u.addUsersToChannels) } else { return fmt.Errorf("mattermost version %s not supported", u.getMattermostVersion())