Add ability to update about text in UpdateProfileRequest

This commit is contained in:
Matthew Rider
2024-10-21 11:35:39 +02:00
parent 54252a3d52
commit f6c3f263e8
2 changed files with 5 additions and 3 deletions

View File

@@ -146,6 +146,7 @@ type CreateGroupResponse struct {
type UpdateProfileRequest struct {
Name string `json:"name"`
Base64Avatar string `json:"base64_avatar"`
About string `json:"about"`
}
type TrustIdentityRequest struct {
@@ -1115,7 +1116,7 @@ func (a *Api) UpdateProfile(c *gin.Context) {
return
}
err = a.signalClient.UpdateProfile(number, req.Name, req.Base64Avatar)
err = a.signalClient.UpdateProfile(number, req.Name, req.Base64Avatar, req.About)
if err != nil {
c.JSON(400, Error{Msg: err.Error()})
return