Skip to content

Commit

Permalink
Support for mattermost version 9 (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
hloeung authored Sep 20, 2023
1 parent 83f4f83 commit d1a0645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm-go-irckit/userbridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit d1a0645

Please sign in to comment.