From 4e50fd864921c556988c919269448efdb90fa961 Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 10 Aug 2020 00:29:54 +0200 Subject: Use mattermost v5 module (#1192) --- matterclient/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'matterclient/helpers.go') diff --git a/matterclient/helpers.go b/matterclient/helpers.go index d5b1038a..99743af0 100644 --- a/matterclient/helpers.go +++ b/matterclient/helpers.go @@ -13,7 +13,7 @@ import ( "github.com/gorilla/websocket" "github.com/jpillora/backoff" - "github.com/mattermost/mattermost-server/model" + "github.com/mattermost/mattermost-server/v5/model" ) func (m *MMClient) doLogin(firstConnection bool, b *backoff.Backoff) error { @@ -154,7 +154,7 @@ func (m *MMClient) initUser() error { t := &Team{Team: team, Users: usermap, Id: team.Id} - mmchannels, resp := m.Client.GetChannelsForTeamForUser(team.Id, m.User.Id, "") + mmchannels, resp := m.Client.GetChannelsForTeamForUser(team.Id, m.User.Id, false, "") if resp.Error != nil { return resp.Error } -- cgit v1.2.3