mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Fix friend order restore again
This commit is contained in:
@@ -17,12 +17,15 @@ export default class extends baseClass {
|
|||||||
var lastUpdate = await configRepository.getString(
|
var lastUpdate = await configRepository.getString(
|
||||||
`VRCX_lastStoreTime_${API.currentUser.id}`
|
`VRCX_lastStoreTime_${API.currentUser.id}`
|
||||||
);
|
);
|
||||||
if (lastUpdate == -2) {
|
if (lastUpdate == -3) {
|
||||||
// this means the backup was already applied
|
// this means the backup was already applied
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var status = false;
|
var status = false;
|
||||||
this.friendNumber = 0;
|
this.friendNumber = 0;
|
||||||
|
for (var ref of this.friendLog.values()) {
|
||||||
|
ref.friendNumber = 0;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
if (lastUpdate) {
|
if (lastUpdate) {
|
||||||
// backup ready to try apply
|
// backup ready to try apply
|
||||||
@@ -51,7 +54,7 @@ export default class extends baseClass {
|
|||||||
// }
|
// }
|
||||||
await configRepository.setString(
|
await configRepository.setString(
|
||||||
`VRCX_lastStoreTime_${API.currentUser.id}`,
|
`VRCX_lastStoreTime_${API.currentUser.id}`,
|
||||||
-2
|
-3
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user