From 571f50d734514b23aff1cf0c4564a751ac2b86ce Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 23 Nov 2016 21:24:35 +0100 Subject: [PATCH] Support mattermost setup with up to 50k users --- matterclient/matterclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index cf51847a..3ee6fca6 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -275,7 +275,7 @@ func (m *MMClient) parseActionPost(rmsg *Message) { } func (m *MMClient) UpdateUsers() error { - mmusers, err := m.Client.GetProfiles(0, 5000, "") + mmusers, err := m.Client.GetProfiles(0, 50000, "") if err != nil { return errors.New(err.DetailedError) } @@ -621,7 +621,7 @@ func (m *MMClient) initUser() error { //m.log.Debug("initUser(): loading all team data") for _, v := range initData.Teams { m.Client.SetTeamId(v.Id) - mmusers, _ := m.Client.GetProfiles(0, 5000, "") + mmusers, _ := m.Client.GetProfiles(0, 50000, "") t := &Team{Team: v, Users: mmusers.Data.(map[string]*model.User), Id: v.Id} mmchannels, _ := m.Client.GetChannels("") t.Channels = mmchannels.Data.(*model.ChannelList)