From a16447319f5de54030e436191ff5e4ff75d40a5e Mon Sep 17 00:00:00 2001 From: shirioko Date: Sat, 26 Apr 2014 01:43:44 +0200 Subject: [PATCH] Added sendSetGroupSubject Fixes #701 --- src/php/whatsprot.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 *