mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
Add ability to update about text in UpdateProfileRequest
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user