diff options
author | Wim <wim@42.be> | 2021-10-21 15:57:21 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2021-10-21 15:57:34 +0200 |
commit | 831ff6d0a9bb77a283cc823a953de430ad6b0f8d (patch) | |
tree | 5ccd0caf39748bb4a68a3a182777b15a2ca84e4a /vendor/github.com | |
parent | 2199174defe7d4ab1388dd64287274a01206606d (diff) | |
download | matterbridge-msglm-831ff6d0a9bb77a283cc823a953de430ad6b0f8d.tar.gz matterbridge-msglm-831ff6d0a9bb77a283cc823a953de430ad6b0f8d.tar.bz2 matterbridge-msglm-831ff6d0a9bb77a283cc823a953de430ad6b0f8d.zip |
Update matterclient dep. Fixes #1617
Diffstat (limited to 'vendor/github.com')
-rw-r--r-- | vendor/github.com/matterbridge/matterclient/messages.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/github.com/matterbridge/matterclient/messages.go b/vendor/github.com/matterbridge/matterclient/messages.go index dc5d5380..3b8a3acc 100644 --- a/vendor/github.com/matterbridge/matterclient/messages.go +++ b/vendor/github.com/matterbridge/matterclient/messages.go @@ -264,9 +264,8 @@ func (m *Client) parseMessage(rmsg *Message) { case model.WebsocketEventPosted, model.WebsocketEventPostEdited, model.WebsocketEventPostDeleted: m.parseActionPost(rmsg) case "user_updated": - user := rmsg.Raw.GetData()["user"].(map[string]interface{}) - if _, ok := user["id"].(string); ok { - m.UpdateUser(user["id"].(string)) + if user, ok := rmsg.Raw.GetData()["user"].(*model.User); ok { + m.UpdateUser(user.Id) } case "group_added": if err := m.UpdateChannels(); err != nil { |