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

@ -88,7 +88,7 @@ module.exports = function(grunt) {
'!js/libtextsecure.js', '!js/libtextsecure.js',
'!js/libaxolotl-worker.js', '!js/libaxolotl-worker.js',
'!js/components.js', '!js/components.js',
'!js/axolotl_store.js', '!js/signal_protocol_store.js',
'_locales/**/*' '_locales/**/*'
], ],
options: { jshintrc: '.jshintrc' }, options: { jshintrc: '.jshintrc' },

View file

@ -391,7 +391,7 @@
<script type='text/javascript' src='js/database.js'></script> <script type='text/javascript' src='js/database.js'></script>
<script type='text/javascript' src='js/debugLog.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/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/libtextsecure.js'></script>
<script type='text/javascript' src='js/notifications.js'></script> <script type='text/javascript' src='js/notifications.js'></script>

View file

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

View file

@ -79,10 +79,10 @@
var Group = Model.extend({ storeName: 'groups' }); var Group = Model.extend({ storeName: 'groups' });
var Item = Model.extend({ storeName: 'items' }); var Item = Model.extend({ storeName: 'items' });
function AxolotlStore() {} function SignalProtocolStore() {}
AxolotlStore.prototype = { SignalProtocolStore.prototype = {
constructor: AxolotlStore, constructor: SignalProtocolStore,
getIdentityKeyPair: function() { getIdentityKeyPair: function() {
var item = new Item({id: 'identityKey'}); var item = new Item({id: 'identityKey'});
return new Promise(function(resolve) { return new Promise(function(resolve) {
@ -330,5 +330,5 @@
}; };
window.AxolotlStore = AxolotlStore; window.SignalProtocolStore = SignalProtocolStore;
})(); })();

View file

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

View file

@ -1,8 +1,8 @@
function AxolotlStore() { function SignalProtocolStore() {
this.store = {}; this.store = {};
} }
AxolotlStore.prototype = { SignalProtocolStore.prototype = {
getIdentityKeyPair: function() { getIdentityKeyPair: function() {
return Promise.resolve(this.get('identityKey')); 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="test.js"></script>
<script type="text/javascript" src="blanket_mocha.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="../components.js"></script>
<script type="text/javascript" src="../crypto.js"></script> <script type="text/javascript" src="../crypto.js"></script>

View file

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

View file

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

View file

@ -104,7 +104,7 @@
<script type="text/javascript" src="../js/components.js"></script> <script type="text/javascript" src="../js/components.js"></script>
<script type="text/javascript" src="../js/database.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/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/libtextsecure.js"></script>
<script type="text/javascript" src="../js/libphonenumber-util.js"></script> <script type="text/javascript" src="../js/libphonenumber-util.js"></script>

View file

@ -4,7 +4,7 @@
'use strict'; 'use strict';
describe("AxolotlStore", function() { describe("SignalProtocolStore", function() {
before(function(done) { before(function(done) {
storage.put('registrationId', 1337); storage.put('registrationId', 1337);
storage.put('identityKey', identityKey); storage.put('identityKey', identityKey);