Skip to content

Commit a164473

Browse files
committed
Added sendSetGroupSubject
Fixes #701
1 parent c4d47dc commit a164473

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/php/whatsprot.class.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,18 @@ public function sendGroupsChatCreate($subject, $participants = array())
870870
return $groupId;
871871
}
872872

873+
public function SendSetGroupSubject($gjid, $subject)
874+
{
875+
$child = new ProtocolNode("subject", array("value" => $subject), null, null);
876+
$node = new ProtocolNode("iq", array(
877+
"id" => $this->createMsgId("set_group_subject"),
878+
"type" => "set",
879+
"to" => $this->getJID($gjid),
880+
"xmlns" => "w:g"
881+
), array($child), null);
882+
$this->sendNode($node);
883+
}
884+
873885
/**
874886
* End or delete a group chat
875887
*

0 commit comments

Comments
 (0)