Use SignalContext instead of SignalWindow

This commit is contained in:
Josh Perez 2021-10-07 19:28:47 -04:00 committed by GitHub
parent a70a8a88d6
commit 75dab30367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 180 additions and 231 deletions

View file

@ -58,7 +58,7 @@ exports.createConversation = async ({
await Promise.all(
range(0, numMessages).map(async index => {
await sleep(index * 100);
window.SignalWindow.log.info(`Create message ${index + 1}`);
window.SignalContext.log.info(`Create message ${index + 1}`);
const message = await createRandomMessage({ conversationId });
return Signal.Data.saveMessage(message);
})
@ -110,7 +110,7 @@ const createRandomMessage = async ({ conversationId } = {}) => {
const message = _createMessage({ commonProperties, conversationId, type });
return Message.initializeSchemaVersion({
message,
logger: window.SignalWindow.log,
logger: window.SignalContext.log,
});
};