summaryrefslogtreecommitdiffstats
path: root/matterclient
diff options
context:
space:
mode:
Diffstat (limited to 'matterclient')
-rw-r--r--matterclient/matterclient.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index 79787917..afd445b5 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -772,6 +772,14 @@ func (m *MMClient) GetStatus(userId string) string {
return "offline"
}
+func (m *MMClient) UpdateStatus(userId string, status string) error {
+ _, resp := m.Client.UpdateUserStatus(userId, &model.Status{Status: status})
+ if resp.Error != nil {
+ return resp.Error
+ }
+ return nil
+}
+
func (m *MMClient) GetStatuses() map[string]string {
var ids []string
statuses := make(map[string]string)