summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--matterclient/matterclient.go15
1 files changed, 12 insertions, 3 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index 75e67c5c..aa2baabf 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -255,7 +255,10 @@ func (m *MMClient) parseActionPost(rmsg *Message) {
}
func (m *MMClient) UpdateUsers() error {
- mmusers, _ := m.Client.GetProfilesForDirectMessageList(m.Team.Id)
+ mmusers, err := m.Client.GetProfilesForDirectMessageList(m.Team.Id)
+ if err != nil {
+ return errors.New(err.DetailedError)
+ }
m.Lock()
m.Users = mmusers.Data.(map[string]*model.User)
m.Unlock()
@@ -263,8 +266,14 @@ func (m *MMClient) UpdateUsers() error {
}
func (m *MMClient) UpdateChannels() error {
- mmchannels, _ := m.Client.GetChannels("")
- mmchannels2, _ := m.Client.GetMoreChannels("")
+ mmchannels, err := m.Client.GetChannels("")
+ if err != nil {
+ return errors.New(err.DetailedError)
+ }
+ mmchannels2, err := m.Client.GetMoreChannels("")
+ if err != nil {
+ return errors.New(err.DetailedError)
+ }
m.Lock()
m.Team.Channels = mmchannels.Data.(*model.ChannelList)
m.Team.MoreChannels = mmchannels2.Data.(*model.ChannelList)