Skip to content

Commit

Permalink
dontLogMeOut flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsumi-sama committed Oct 2, 2024
1 parent 91196dd commit 9141ff5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions html/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10371,6 +10371,8 @@ speechSynthesis.getVoices();
this.feedTable.loading = false;
};

$app.data.dontLogMeOut = false;

API.$on('LOGIN', async function (args) {
$app.friendLog = new Map();
$app.feedTable.data = [];
Expand Down Expand Up @@ -10403,12 +10405,14 @@ speechSynthesis.getVoices();
await $app.initFriendLog(args.json.id);
}
} catch (err) {
$app.$message({
message: 'Failed to load freinds list, logging out',
type: 'error'
});
this.logout();
throw err;
if (!$app.dontLogMeOut) {
$app.$message({
message: 'Failed to load freinds list, logging out',
type: 'error'
});
this.logout();
throw err;
}
}
$app.getAvatarHistory();
$app.getAllMemos();
Expand Down

0 comments on commit 9141ff5

Please sign in to comment.