diff options
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/github.com/matterbridge/matterclient/messages.go | 5 | ||||
-rw-r--r-- | vendor/modules.txt | 2 |
2 files changed, 3 insertions, 4 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 { diff --git a/vendor/modules.txt b/vendor/modules.txt index 7ef305a3..1c1707a0 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -189,7 +189,7 @@ github.com/matterbridge/gozulipbot # github.com/matterbridge/logrus-prefixed-formatter v0.5.3-0.20200523233437-d971309a77ba ## explicit github.com/matterbridge/logrus-prefixed-formatter -# github.com/matterbridge/matterclient v0.0.0-20211016195328-346acac403d8 +# github.com/matterbridge/matterclient v0.0.0-20211021135437-2dc2bc7dce2d ## explicit; go 1.16 github.com/matterbridge/matterclient # github.com/mattermost/go-i18n v1.11.0 |