Rename AxolotlStore
// FREEBIE
This commit is contained in:
parent
1fe5d63015
commit
b1d370755a
11 changed files with 15 additions and 15 deletions
|
@ -88,7 +88,7 @@ module.exports = function(grunt) {
|
|||
'!js/libtextsecure.js',
|
||||
'!js/libaxolotl-worker.js',
|
||||
'!js/components.js',
|
||||
'!js/axolotl_store.js',
|
||||
'!js/signal_protocol_store.js',
|
||||
'_locales/**/*'
|
||||
],
|
||||
options: { jshintrc: '.jshintrc' },
|
||||
|
|
|
@ -391,7 +391,7 @@
|
|||
<script type='text/javascript' src='js/database.js'></script>
|
||||
<script type='text/javascript' src='js/debugLog.js'></script>
|
||||
<script type='text/javascript' src='js/storage.js'></script>
|
||||
<script type='text/javascript' src='js/axolotl_store.js'></script>
|
||||
<script type='text/javascript' src='js/signal_protocol_store.js'></script>
|
||||
<script type='text/javascript' src='js/libtextsecure.js'></script>
|
||||
|
||||
<script type='text/javascript' src='js/notifications.js'></script>
|
||||
|
|
|
@ -35296,7 +35296,7 @@ axolotlInternal.RecipientRecord = function() {
|
|||
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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -79,10 +79,10 @@
|
|||
var Group = Model.extend({ storeName: 'groups' });
|
||||
var Item = Model.extend({ storeName: 'items' });
|
||||
|
||||
function AxolotlStore() {}
|
||||
function SignalProtocolStore() {}
|
||||
|
||||
AxolotlStore.prototype = {
|
||||
constructor: AxolotlStore,
|
||||
SignalProtocolStore.prototype = {
|
||||
constructor: SignalProtocolStore,
|
||||
getIdentityKeyPair: function() {
|
||||
var item = new Item({id: 'identityKey'});
|
||||
return new Promise(function(resolve) {
|
||||
|
@ -330,5 +330,5 @@
|
|||
|
||||
};
|
||||
|
||||
window.AxolotlStore = AxolotlStore;
|
||||
window.SignalProtocolStore = SignalProtocolStore;
|
||||
})();
|
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
function AxolotlStore() {
|
||||
function SignalProtocolStore() {
|
||||
this.store = {};
|
||||
}
|
||||
|
||||
AxolotlStore.prototype = {
|
||||
SignalProtocolStore.prototype = {
|
||||
getIdentityKeyPair: function() {
|
||||
return Promise.resolve(this.get('identityKey'));
|
||||
},
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
describe("AxolotlStore", function() {
|
||||
describe("SignalProtocolStore", function() {
|
||||
before(function() { localStorage.clear(); });
|
||||
var store = textsecure.storage.axolotl;
|
||||
var identifier = '+5558675309';
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
<script type="text/javascript" src="../js/components.js"></script>
|
||||
<script type="text/javascript" src="../js/database.js"></script>
|
||||
<script type="text/javascript" src="../js/storage.js"></script>
|
||||
<script type="text/javascript" src="../js/axolotl_store.js"></script>
|
||||
<script type="text/javascript" src="../js/signal_protocol_store.js"></script>
|
||||
<script type="text/javascript" src="../js/libtextsecure.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../js/libphonenumber-util.js"></script>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
describe("AxolotlStore", function() {
|
||||
describe("SignalProtocolStore", function() {
|
||||
before(function(done) {
|
||||
storage.put('registrationId', 1337);
|
||||
storage.put('identityKey', identityKey);
|
||||
|
|
Loading…
Reference in a new issue