Skip to content

Commit

Permalink
Added sendSetGroupSubject
Browse files Browse the repository at this point in the history
  • Loading branch information
shirioko committed Apr 25, 2014
1 parent c4d47dc commit a164473
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/php/whatsprot.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,18 @@ public function sendGroupsChatCreate($subject, $participants = array())
return $groupId;
}

public function SendSetGroupSubject($gjid, $subject)
{
$child = new ProtocolNode("subject", array("value" => $subject), null, null);
$node = new ProtocolNode("iq", array(
"id" => $this->createMsgId("set_group_subject"),
"type" => "set",
"to" => $this->getJID($gjid),
"xmlns" => "w:g"
), array($child), null);
$this->sendNode($node);
}

/**
* End or delete a group chat
*
Expand Down

0 comments on commit a164473

Please sign in to comment.