Passive UUID support

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Ken Powers 2020-03-05 13:14:58 -08:00 committed by Scott Nonnenberg
parent f64ca0ed21
commit a90246cbe5
49 changed files with 2226 additions and 776 deletions

View file

@ -1,4 +1,4 @@
/* global _, textsecure, libsignal, storage */
/* global _, textsecure, libsignal, storage, ConversationController */
'use strict';
@ -8,7 +8,7 @@ describe('SignalProtocolStore', () => {
let identityKey;
let testKey;
before(done => {
before(async () => {
store = textsecure.storage.protocol;
store.hydrateCaches();
identityKey = {
@ -22,7 +22,10 @@ describe('SignalProtocolStore', () => {
storage.put('registrationId', 1337);
storage.put('identityKey', identityKey);
storage.fetch().then(done, done);
await storage.fetch();
ConversationController.reset();
await ConversationController.load();
await ConversationController.getOrCreateAndWait(number, 'private');
});
describe('getLocalRegistrationId', () => {