This commit is contained in:
Natsumi
2024-10-31 13:54:18 +13:00
parent 0870805222
commit 97385d4769
5 changed files with 46 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ export default class extends baseClass {
}).then((json) => {
var args = {
json,
origin: true
fromGetCurrentUser: true
};
if (
json.requiresTwoFactorAuth &&

View File

@@ -6,9 +6,17 @@ export default class extends baseClass {
super(_app, _API, _t);
}
init() {
API.$on('LOGIN', function () {
$app.nextCurrentUserRefresh = 300;
$app.nextFriendsRefresh = 3600;
$app.nextGroupInstanceRefresh = 0;
});
}
_data = {
nextCurrentUserRefresh: 0,
nextFriendsRefresh: 0,
nextCurrentUserRefresh: 300,
nextFriendsRefresh: 3600,
nextGroupInstanceRefresh: 0,
nextAppUpdateCheck: 3600,
ipcTimeout: 0,