allow logging external events without notification (#1337)

This commit is contained in:
sofoxe1
2025-08-23 23:48:23 +02:00
committed by GitHub
parent 887f59d2b4
commit ed06eee243

View File

@@ -354,6 +354,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
break; break;
case 'External': { case 'External': {
const displayName = data.DisplayName ?? ''; const displayName = data.DisplayName ?? '';
const notify = data.notify ?? true;
entry = { entry = {
created_at: new Date().toJSON(), created_at: new Date().toJSON(),
type: 'External', type: 'External',
@@ -363,7 +364,9 @@ export const useVrcxStore = defineStore('Vrcx', () => {
location: locationStore.lastLocation.location location: locationStore.lastLocation.location
}; };
database.addGamelogExternalToDatabase(entry); database.addGamelogExternalToDatabase(entry);
notificationStore.queueGameLogNoty(entry); if (notify){
notificationStore.queueGameLogNoty(entry);
}
gameLogStore.addGameLog(entry); gameLogStore.addGameLog(entry);
break; break;
} }