mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-22 09:28:14 +01:00
Passive UUID support
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
committed by
Scott Nonnenberg
parent
f64ca0ed21
commit
a90246cbe5
@@ -1,9 +1,7 @@
|
||||
/* global libsignal, textsecure */
|
||||
/* global libsignal, textsecure, storage, ConversationController */
|
||||
|
||||
describe('SignalProtocolStore', () => {
|
||||
before(() => {
|
||||
localStorage.clear();
|
||||
});
|
||||
// debugger;
|
||||
const store = textsecure.storage.protocol;
|
||||
const identifier = '+5558675309';
|
||||
const identityKey = {
|
||||
@@ -14,6 +12,14 @@ describe('SignalProtocolStore', () => {
|
||||
pubKey: libsignal.crypto.getRandomBytes(33),
|
||||
privKey: libsignal.crypto.getRandomBytes(32),
|
||||
};
|
||||
before(async () => {
|
||||
localStorage.clear();
|
||||
ConversationController.reset();
|
||||
// store.hydrateCaches();
|
||||
await storage.fetch();
|
||||
await ConversationController.load();
|
||||
await ConversationController.getOrCreateAndWait(identifier, 'private');
|
||||
});
|
||||
it('retrieves my registration id', async () => {
|
||||
store.put('registrationId', 1337);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user