Skip to content

Commit

Permalink
Support mattermost version 8, drop support for version 6
Browse files Browse the repository at this point in the history
Fixes #537
  • Loading branch information
42wim committed Aug 5, 2023
1 parent 94c870c commit fd02309
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 @@ -869,7 +869,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 strings.HasPrefix(u.getMattermostVersion(), "6.") || strings.HasPrefix(u.getMattermostVersion(), "7.") {
if strings.HasPrefix(u.getMattermostVersion(), "7.") || strings.HasPrefix(u.getMattermostVersion(), "8.") {
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 fd02309

Please sign in to comment.