Skip to content

Commit

Permalink
Fix setting empty avatar for user
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 9, 2021
1 parent 7700d19 commit 20b78fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,8 @@ func (cli *Client) GetOwnAvatarURL() (url id.ContentURI, err error) {
func (cli *Client) SetAvatarURL(url id.ContentURI) (err error) {
urlPath := cli.BuildURL("profile", cli.UserID, "avatar_url")
s := struct {
AvatarURL id.ContentURI `json:"avatar_url"`
}{url}
AvatarURL string `json:"avatar_url"`
}{url.String()}
_, err = cli.MakeRequest("PUT", urlPath, &s, nil)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package mautrix

const Version = "v0.8.1"
const Version = "v0.8.2"

0 comments on commit 20b78fa

Please sign in to comment.