Skip to content

Commit

Permalink
Fixed sendClientConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
shirioko committed Mar 25, 2014
1 parent 2356370 commit ce46a80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/php/whatsprot.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,12 +637,11 @@ public function sendClientConfig()
$phone = $this->dissectPhone();

$attr = array();
$attr["xmlns"] = "urn:xmpp:whatsapp:push";
$attr["platform"] = "none";
$attr["lc"] = $phone["ISO3166"];
$attr["lg"] = $phone["ISO639"];
$child = new ProtocolNode("config", $attr, null, "");
$node = new ProtocolNode("iq", array("id" => $this->createMsgId("config"), "type" => "set", "to" => static::WHATSAPP_SERVER), array($child), null);
$node = new ProtocolNode("iq", array("id" => $this->createMsgId("config"), "type" => "set", "xmlns" => "urn:xmpp:whatsapp:push", "to" => static::WHATSAPP_SERVER), array($child), null);
$this->sendNode($node);
}

Expand Down

0 comments on commit ce46a80

Please sign in to comment.