From ba35212b673088be4096d25043094e3fb7a0d3ee Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 1 Jul 2017 23:05:39 +0200 Subject: Optimize GetStatus. (from @recht matterircd fork) --- matterclient/matterclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "" } -- cgit v1.2.3