From f86361678562ef86ed2273b4bab1dfd717d32dbc Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 4 Nov 2015 10:31:50 -0800 Subject: [PATCH] Remove api TODO comments // FREEBIE --- js/libtextsecure.js | 7 ++----- libtextsecure/api.js | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 81974a67b..e6cf78bc5 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -39004,8 +39004,8 @@ var TextSecureServer = (function() { }; } - //TODO: This is just to make the server happy (v2 clients should choke on publicKey), - // it needs removed before release + // This is just to make the server happy + // (v2 clients should choke on publicKey) keys.lastResortKey = {keyId: 0x7fffFFFF, publicKey: btoa("42")}; return this.ajax({ @@ -39037,9 +39037,6 @@ var TextSecureServer = (function() { res.devices[i].signedPreKey.publicKey = StringView.base64ToBytes(res.devices[i].signedPreKey.publicKey); res.devices[i].signedPreKey.signature = StringView.base64ToBytes(res.devices[i].signedPreKey.signature); res.devices[i].preKey.publicKey = StringView.base64ToBytes(res.devices[i].preKey.publicKey); - //TODO: Is this still needed? - //if (res.devices[i].keyId === undefined) - // res.devices[i].keyId = 0; } return res; }); diff --git a/libtextsecure/api.js b/libtextsecure/api.js index 8b4a137f9..88dbe76d2 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -209,8 +209,8 @@ var TextSecureServer = (function() { }; } - //TODO: This is just to make the server happy (v2 clients should choke on publicKey), - // it needs removed before release + // This is just to make the server happy + // (v2 clients should choke on publicKey) keys.lastResortKey = {keyId: 0x7fffFFFF, publicKey: btoa("42")}; return this.ajax({ @@ -242,9 +242,6 @@ var TextSecureServer = (function() { res.devices[i].signedPreKey.publicKey = StringView.base64ToBytes(res.devices[i].signedPreKey.publicKey); res.devices[i].signedPreKey.signature = StringView.base64ToBytes(res.devices[i].signedPreKey.signature); res.devices[i].preKey.publicKey = StringView.base64ToBytes(res.devices[i].preKey.publicKey); - //TODO: Is this still needed? - //if (res.devices[i].keyId === undefined) - // res.devices[i].keyId = 0; } return res; });