mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-19 01:22:38 +01:00
Optimize GetStatus. (from @recht matterircd fork)
This commit is contained in:
parent
f3e0358de7
commit
ba35212b67
@ -684,7 +684,7 @@ func (m *MMClient) GetUserName(userId string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *MMClient) GetStatus(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 {
|
if err != nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user