diff options
author | Wim <wim@42.be> | 2020-08-10 00:29:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 00:29:54 +0200 |
commit | 4e50fd864921c556988c919269448efdb90fa961 (patch) | |
tree | a3625f03f8de3c4f3841364000a4ea3aa42c1533 /matterclient/channels.go | |
parent | dfdffa0027334e55ce213fc6eb62206dbf48baf6 (diff) | |
download | matterbridge-msglm-4e50fd864921c556988c919269448efdb90fa961.tar.gz matterbridge-msglm-4e50fd864921c556988c919269448efdb90fa961.tar.bz2 matterbridge-msglm-4e50fd864921c556988c919269448efdb90fa961.zip |
Use mattermost v5 module (#1192)
Diffstat (limited to 'matterclient/channels.go')
-rw-r--r-- | matterclient/channels.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/matterclient/channels.go b/matterclient/channels.go index e1ebf48d..13d3277d 100644 --- a/matterclient/channels.go +++ b/matterclient/channels.go @@ -4,7 +4,7 @@ import ( "errors" "strings" - "github.com/mattermost/mattermost-server/model" + "github.com/mattermost/mattermost-server/v5/model" ) // GetChannels returns all channels we're members off @@ -167,7 +167,7 @@ func (m *MMClient) JoinChannel(channelId string) error { //nolint:golint } func (m *MMClient) UpdateChannelsTeam(teamID string) error { - mmchannels, resp := m.Client.GetChannelsForTeamForUser(teamID, m.User.Id, "") + mmchannels, resp := m.Client.GetChannelsForTeamForUser(teamID, m.User.Id, false, "") if resp.Error != nil { return errors.New(resp.Error.DetailedError) } |