mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 23:54:22 +01:00
update group name
This commit is contained in:
@@ -50,7 +50,8 @@ type CreateGroupRequest struct {
|
||||
|
||||
type UpdateGroupRequest struct {
|
||||
Base64Avatar *string `json:"base64_avatar"`
|
||||
Description *string `json:"description"`
|
||||
Description *string `json:"description"`
|
||||
Name *string `json:"name"`
|
||||
}
|
||||
|
||||
type ChangeGroupMembersRequest struct {
|
||||
@@ -1288,7 +1289,7 @@ func (a *Api) UpdateGroup(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
err = a.signalClient.UpdateGroup(number, internalGroupId, req.Base64Avatar, req.Description)
|
||||
err = a.signalClient.UpdateGroup(number, internalGroupId, req.Base64Avatar, req.Description, req.Name)
|
||||
if err != nil {
|
||||
c.JSON(400, Error{Msg: err.Error()})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user