Skip to content

Commit

Permalink
Support Mattermost 10.0.0 (#585)
Browse files Browse the repository at this point in the history
Support Mattermost version 10
  • Loading branch information
dfskoll committed Sep 18, 2024
1 parent 6487375 commit ec4b62f
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 @@ -907,7 +907,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.") || strings.HasPrefix(u.getMattermostVersion(), "9.") {
if u.v.GetBool("mattermost.ignoreserverversion") || strings.HasPrefix(u.getMattermostVersion(), "7.") || strings.HasPrefix(u.getMattermostVersion(), "8.") || strings.HasPrefix(u.getMattermostVersion(), "9.") || strings.HasPrefix(u.getMattermostVersion(), "10.") {
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 ec4b62f

Please sign in to comment.