Improve 'Previous Instances' grouping behavior (#1305)

* Group user's previous instances by location AND calendar dates for better clarity

* date grouping in local timezone instead of UTC

* prevent zero-time records due to OnPlayerJoined and OnPlayerLeft happening on different calendar days

* fix deleteGameLogUserInstance behavior to be consistent with new history grouping

* change 'previous instances' algorithm

group multiple events together into single session record, even if rejoins occur within 1 hour on the same instance
delete button also deletes all related gamelog_join_leave events correctly by their id

* replace questionable condition with proper one
This commit is contained in:
osiris-plus
2025-07-24 12:37:41 +03:00
committed by GitHub
parent c4533fd9d0
commit 260854d538
2 changed files with 44 additions and 21 deletions

View File

@@ -165,7 +165,8 @@
database.deleteGameLogInstance({
id: props.previousInstancesUserDialog.userRef.id,
displayName: props.previousInstancesUserDialog.userRef.displayName,
location: row.location
location: row.location,
events: row.events
});
removeFromArray(previousInstancesUserDialogTable.data, row);
}