Flush message counter on shutdown

This commit is contained in:
Fedor Indutny 2021-09-08 16:28:18 -07:00 committed by GitHub
parent bd47720864
commit 7a5385e00a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 4 deletions

View file

@ -618,6 +618,9 @@ export async function startApp(): Promise<void> {
window.Events = createIPCEvents({
shutdown: async () => {
window.log.info('background/shutdown');
window.Signal.Util.flushMessageCounter();
// Stop background processing
AttachmentDownloads.stop();
if (idleDetector) {