Remove ping, update to latest spec proposal

This commit is contained in:
Matt Corallo 2014-07-26 18:14:24 -04:00
parent 82d04e347c
commit 90eb9cb0c8
2 changed files with 4 additions and 19 deletions

View file

@ -138,10 +138,9 @@ textsecure.registerOnLoadFunction(function() {
var socket = textsecure.api.getTempWebsocket();
socket.onmessage = function(message) {
//TODO: Get a server format for this
if (message.type === 4) {
if (message.uuid) {
qrCode.makeCode('textsecure-device-init:/' +
'?channel_uuid=' + message.message +
'?channel_uuid=' + message.uuid +
'&channel_server=' + textsecure.api.relay +
'&publicKey=' + btoa(getString(cryptoInfo.publicKey)));
$('img').removeAttr('style');