update group name

This commit is contained in:
Tomek Osika
2023-10-29 17:02:32 +01:00
parent 0cab12c49d
commit 56eaa7b79b
3 changed files with 13 additions and 3 deletions

View File

@@ -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