dontLogMeOut flag

This commit is contained in:
Natsumi
2024-10-03 12:26:18 +13:00
parent 3ff2d687d2
commit ee23a8580f
+4
View File
@@ -10341,6 +10341,8 @@ speechSynthesis.getVoices();
this.feedTable.loading = false; this.feedTable.loading = false;
}; };
$app.data.dontLogMeOut = false;
API.$on('LOGIN', async function (args) { API.$on('LOGIN', async function (args) {
$app.friendLog = new Map(); $app.friendLog = new Map();
$app.feedTable.data = []; $app.feedTable.data = [];
@@ -10373,6 +10375,7 @@ speechSynthesis.getVoices();
await $app.initFriendLog(args.json.id); await $app.initFriendLog(args.json.id);
} }
} catch (err) { } catch (err) {
if (!$app.dontLogMeOut) {
$app.$message({ $app.$message({
message: 'Failed to load freinds list, logging out', message: 'Failed to load freinds list, logging out',
type: 'error' type: 'error'
@@ -10380,6 +10383,7 @@ speechSynthesis.getVoices();
this.logout(); this.logout();
throw err; throw err;
} }
}
$app.getAvatarHistory(); $app.getAvatarHistory();
$app.getAllMemos(); $app.getAllMemos();
if ($app.randomUserColours) { if ($app.randomUserColours) {