mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 05:43:51 +02:00
Fix gamelog notify being triggered from old logs being removed
This commit is contained in:
@@ -4639,7 +4639,7 @@ speechSynthesis.getVoices();
|
||||
|
||||
$app.data.gameLogTable = {
|
||||
data: [],
|
||||
lastRunLength: 0,
|
||||
lastEntryDate: '',
|
||||
filters: [
|
||||
{
|
||||
prop: 'type',
|
||||
@@ -4683,10 +4683,13 @@ speechSynthesis.getVoices();
|
||||
if (API.isLoggedIn === true) {
|
||||
await this.updateGameLog();
|
||||
this.sweepGameLog();
|
||||
if (this.gameLogTable.data.length !== this.gameLogTable.lastRunLength) {
|
||||
this.notifyMenu('gameLog');
|
||||
var length = this.gameLogTable.data.length;
|
||||
if (length > 0) {
|
||||
if (this.gameLogTable.data[length - 1].created_at !== this.gameLogTable.lastEntryDate) {
|
||||
this.notifyMenu('gameLog');
|
||||
}
|
||||
this.gameLogTable.lastEntryDate = this.gameLogTable.data[length - 1].created_at;
|
||||
}
|
||||
this.gameLogTable.lastRunLength = this.gameLogTable.data.length;
|
||||
this.updateSharedFeed();
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user