diff --git a/src/php/whatsprot.class.php b/src/php/whatsprot.class.php index eb3f960e..c5e49ebc 100644 --- a/src/php/whatsprot.class.php +++ b/src/php/whatsprot.class.php @@ -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 *