summaryrefslogtreecommitdiffstats
path: root/matterclient
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-07-01 23:05:39 +0200
committerWim <wim@42.be>2017-07-01 23:05:39 +0200
commitba35212b673088be4096d25043094e3fb7a0d3ee (patch)
tree7abfa40aef842892f3f12c10eb4e6606e626f743 /matterclient
parentf3e0358de7720dca350f2d9955827707d4810f51 (diff)
downloadmatterbridge-msglm-ba35212b673088be4096d25043094e3fb7a0d3ee.tar.gz
matterbridge-msglm-ba35212b673088be4096d25043094e3fb7a0d3ee.tar.bz2
matterbridge-msglm-ba35212b673088be4096d25043094e3fb7a0d3ee.zip
Optimize GetStatus. (from @recht matterircd fork)
Diffstat (limited to 'matterclient')
-rw-r--r--matterclient/matterclient.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index 1dcab802..91795b37 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -684,7 +684,7 @@ func (m *MMClient) GetUserName(userId string) string {
}
func (m *MMClient) GetStatus(userId string) string {
- res, err := m.Client.GetStatuses()
+ res, err := m.Client.GetStatusesByIds([]string{userId})
if err != nil {
return ""
}