diff --git a/ts/background.ts b/ts/background.ts index 84dbe502b01..3d89716ab30 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -1564,15 +1564,13 @@ export async function startApp(): Promise { window.Whisper.events.on('powerMonitorSuspend', () => { log.info('powerMonitor: suspend'); - messageReceiver?.pause(); suspendTasksWithTimeout(); }); window.Whisper.events.on('powerMonitorResume', () => { log.info('powerMonitor: resume'); - messageReceiver?.resume(); - resumeTasksWithTimeout(); server?.checkSockets(); + resumeTasksWithTimeout(); }); window.Whisper.events.on('powerMonitorLockScreen', () => { diff --git a/ts/textsecure/MessageReceiver.ts b/ts/textsecure/MessageReceiver.ts index fb9db389e58..19d7670c5dc 100644 --- a/ts/textsecure/MessageReceiver.ts +++ b/ts/textsecure/MessageReceiver.ts @@ -187,22 +187,6 @@ export default class MessageReceiver private stoppingProcessing?: boolean; - pause(): void { - this.incomingQueue.pause(); - this.encryptedQueue.pause(); - this.decryptedQueue.pause(); - this.appQueue.pause(); - log.info('MessageReceiver: Paused'); - } - - resume(): void { - this.appQueue.start(); - this.decryptedQueue.start(); - this.encryptedQueue.start(); - this.incomingQueue.start(); - log.info('MessageReceiver: Resumed'); - } - constructor({ server, storage, serverTrustRoot }: MessageReceiverOptions) { super();