summaryrefslogtreecommitdiffstats
path: root/matterclient
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-11-23 21:24:35 +0100
committerWim <wim@42.be>2016-11-23 21:24:35 +0100
commit571f50d734514b23aff1cf0c4564a751ac2b86ce (patch)
tree009570a0a67db1cd53c9ae7344619fe520bbd663 /matterclient
parent780ea6f7c0ebbaedec764dd629375f734909d0d2 (diff)
downloadmatterbridge-msglm-571f50d734514b23aff1cf0c4564a751ac2b86ce.tar.gz
matterbridge-msglm-571f50d734514b23aff1cf0c4564a751ac2b86ce.tar.bz2
matterbridge-msglm-571f50d734514b23aff1cf0c4564a751ac2b86ce.zip
Support mattermost setup with up to 50k users
Diffstat (limited to 'matterclient')
-rw-r--r--matterclient/matterclient.go4
1 files 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)