From ad9b161744b27acc5e333ee70df11afca09301ef Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Fri, 2 Dec 2022 22:38:48 +0000 Subject: [PATCH] moduleUpdater: don't defer voice module --- src/mainWindow.js | 2 -- src/updater/moduleUpdater.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mainWindow.js b/src/mainWindow.js index c78a4a1..3b2b05d 100644 --- a/src/mainWindow.js +++ b/src/mainWindow.js @@ -65,8 +65,6 @@ injCSS(``); openasar = {}; // Define global for any mods which want to know / etc -DiscordNative.nativeModules.ensureModule('discord_voice'); // Ensure discord_voice to generally prevent corruption message / broken VC, also for deferring for fresh start - setInterval(() => { // Try init themesync try { themesync(); diff --git a/src/updater/moduleUpdater.js b/src/updater/moduleUpdater.js index ee382f4..0545d27 100644 --- a/src/updater/moduleUpdater.js +++ b/src/updater/moduleUpdater.js @@ -65,7 +65,7 @@ exports.init = (endpoint, { releaseChannel, version }) => { try { installed = JSON.parse(fs.readFileSync(manifestPath)); } catch { - for (const m of [ 'desktop_core', 'utils' ]) { // Ignore actual bootstrap manifest and choose our own core 2, others are deferred + for (const m of [ 'desktop_core', 'utils', 'voice' ]) { // Ignore actual bootstrap manifest and choose our own core set, others are deferred installed['discord_' + m] = { installedVersion: 0 }; // Set initial version as 0 } }