sync: 0.7.3 from main (15b0dbdde03c6b89733ca07d36eefa25fd301107)
This commit is contained in:
1 parent
9337afc47e
commit
80d7c72c07
12 files changed
+484
-315
No files matched your search
@@ -444,7 +444,7 @@ func (u *userService) BlockContact(data *BlockStruct, instance *instance_model.I
|
||||
return nil, errors.New("invalid phone number")
|
||||
}
|
||||
|
||||
resp, err := client.UpdateBlocklist(context.Background(), jid, events.BlocklistChangeActionBlock)
|
||||
resp, err := client.UpdateBlocklist(context.Background(), jid, events.BlocklistChangeActionBlock, "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -463,7 +463,7 @@ func (u *userService) UnlockContact(data *BlockStruct, instance *instance_model.
|
||||
return nil, errors.New("invalid phone number")
|
||||
}
|
||||
|
||||
resp, err := client.UpdateBlocklist(context.Background(), jid, events.BlocklistChangeActionUnblock)
|
||||
resp, err := client.UpdateBlocklist(context.Background(), jid, events.BlocklistChangeActionUnblock, "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -477,7 +477,7 @@ func (u *userService) GetBlockList(instance *instance_model.Instance) (*types.Bl
|
||||
return nil, err
|
||||
}
|
||||
|
||||
resp, err := client.GetBlocklist(context.Background())
|
||||
resp, err := client.GetBlocklist(context.Background(), "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -532,7 +532,7 @@ func (u *userService) SetProfileStatus(data *SetProfileStatusStruct, instance *i
|
||||
return false, err
|
||||
}
|
||||
|
||||
err = client.SetStatusMessage(context.Background(), data.Status)
|
||||
err = client.SetStatusMessage(context.Background(), types.SetStatusInput{Text: &data.Status})
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user