Convert signal.js and preload.js to Typescript

This commit is contained in:
Scott Nonnenberg
2022-06-13 14:39:35 -07:00
committed by GitHub
parent e18510e41c
commit 2464e0a9c1
94 changed files with 2113 additions and 1848 deletions

View File

@@ -52,6 +52,7 @@ import { QualifiedAddress } from './types/QualifiedAddress';
import * as log from './logging/log';
import { singleProtoJobQueue } from './jobs/singleProtoJobQueue';
import * as Errors from './types/errors';
import MessageSender from './textsecure/SendMessage';
const TIMESTAMP_THRESHOLD = 5 * 1000; // 5 seconds
@@ -1386,7 +1387,7 @@ export class SignalProtocolStore extends EventsMixin {
// Enqueue a null message with newly-created session
await singleProtoJobQueue.add(
window.textsecure.messaging.getNullMessage({
MessageSender.getNullMessage({
uuid: uuid.toString(),
})
);