Discord RPC localization, trigger BlockedOnPlayerJoined when joining an instance

This commit is contained in:
Natsumi
2025-08-02 07:46:56 +12:00
parent 2fea5f25b9
commit 806748388b
6 changed files with 74 additions and 40 deletions

View File

@@ -2188,9 +2188,9 @@ export const useNotificationStore = defineStore('Notification', () => {
let bias;
// remove join/leave notifications when switching worlds
if (
noty.type === 'OnPlayerJoined' ||
noty.type === 'BlockedOnPlayerJoined' ||
noty.type === 'MutedOnPlayerJoined'
noty.type === 'OnPlayerJoined'
// noty.type === 'BlockedOnPlayerJoined' ||
// noty.type === 'MutedOnPlayerJoined'
) {
bias = locationStore.lastLocation.date + 30 * 1000; // 30 secs
if (Date.parse(noty.created_at) <= bias) {