Add Signal.Workflow
namespace
This commit is contained in:
parent
4a7cc22de3
commit
7c2fde4433
3 changed files with 9 additions and 7 deletions
|
@ -14,7 +14,7 @@
|
|||
;(function() {
|
||||
'use strict';
|
||||
|
||||
const { IdleDetector, MessageMigration } = Signal;
|
||||
const { IdleDetector, MessageDataMigrator } = Signal.Workflow;
|
||||
const { Errors, Message } = window.Signal.Types;
|
||||
const { upgradeMessageSchema } = window.Signal.Migrations;
|
||||
|
||||
|
@ -77,11 +77,11 @@
|
|||
storage.fetch();
|
||||
|
||||
|
||||
/* eslint-enable */
|
||||
/* eslint-enable */
|
||||
/* jshint ignore:start */
|
||||
const idleDetector = new IdleDetector();
|
||||
idleDetector.on('idle', async () => {
|
||||
const results = await MessageMigration.processNext({
|
||||
const results = await MessageDataMigrator.processNext({
|
||||
BackboneMessage: Whisper.Message,
|
||||
BackboneMessageCollection: Whisper.MessageCollection,
|
||||
count: 3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue