Skip to content

Commit

Permalink
Merge pull request #1 from Sagleft/dev
Browse files Browse the repository at this point in the history
update setContactGroup & setContactNick methods
  • Loading branch information
Sagleft authored Nov 5, 2019
2 parents 53e6e44 + 8aa1d03 commit b3c32b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ public function setContactGroup($pk = "", $groupName = ""): bool {
return false;
}
$params = [
'pk' => $pk,
'groupName' => $groupName
'contactPublicKey' => $pk,
'groupName' => $groupName
];
$response = $this->api_query("setContactGroup", $params);
if(! $this->checkResultContains($response)) {
Expand All @@ -221,8 +221,8 @@ public function setContactNick($pk = "", $newNick = ""): bool {
return false;
}
$params = [
'pk' => $pk,
'newNick' => $newNick
'contactPublicKey' => $pk,
'newNick' => $newNick
];
$response = $this->api_query("setContactNick", $params);
if(! $this->checkResultContains($response)) {
Expand Down

0 comments on commit b3c32b3

Please sign in to comment.