[Updater > Module] Defer discord_voice install into MainWindow

This commit is contained in:
Ducko 2022-04-21 11:50:05 +01:00
parent 3935af3bdc
commit 904f51fb28
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ document.body.appendChild(el);
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 {

View File

@ -49,7 +49,7 @@ exports.init = (endpoint, { releaseChannel, version }) => {
try {
installed = JSON.parse(fs.readFileSync(manifestPath));
} catch {
for (const m of [ 'desktop_core', 'utils', 'voice' ]) { // Ignore actual bootstrap manifest and choose our own core 3, others are installed as/when needed
for (const m of [ 'desktop_core', 'utils' ]) { // Ignore actual bootstrap manifest and choose our own core 2, others are deferred
installed['discord_' + m] = { installedVersion: 0 }; // Set initial version as 0
}
}