Rename AxolotlStore

// FREEBIE
This commit is contained in:
lilia 2016-04-21 16:45:21 -07:00
parent 1fe5d63015
commit b1d370755a
11 changed files with 15 additions and 15 deletions

View file

@ -6,7 +6,7 @@
window.textsecure = window.textsecure || {};
window.textsecure.storage = window.textsecure.storage || {};
textsecure.storage.axolotl = new AxolotlStore();
textsecure.storage.axolotl = new SignalProtocolStore();
var axolotlInstance = axolotl.protocol(textsecure.storage.axolotl);
/*

View file

@ -1,8 +1,8 @@
function AxolotlStore() {
function SignalProtocolStore() {
this.store = {};
}
AxolotlStore.prototype = {
SignalProtocolStore.prototype = {
getIdentityKeyPair: function() {
return Promise.resolve(this.get('identityKey'));
},

View file

@ -14,7 +14,7 @@
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript" src="blanket_mocha.js"></script>
<script type="text/javascript" src="in_memory_axolotl_store.js"></script>
<script type="text/javascript" src="in_memory_signal_protocol_store.js"></script>
<script type="text/javascript" src="../components.js"></script>
<script type="text/javascript" src="../crypto.js"></script>

View file

@ -3,7 +3,7 @@
*/
describe('MessageReceiver', function() {
textsecure.storage.impl = new AxolotlStore();
textsecure.storage.impl = new SignalProtocolStore();
var WebSocket = window.WebSocket;
var number = '+19999999999';
var deviceId = 1;

View file

@ -4,7 +4,7 @@
'use strict';
describe("AxolotlStore", function() {
describe("SignalProtocolStore", function() {
before(function() { localStorage.clear(); });
var store = textsecure.storage.axolotl;
var identifier = '+5558675309';