Merge branch 'develop' into notification-hide-muting-user

This commit is contained in:
taichan 2024-02-20 15:57:28 +09:00 committed by GitHub
commit 286c7eb725
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -126,7 +126,7 @@ export async function loadAudio(url: string, options?: { useCache?: boolean; })
*/
export function playMisskeySfx(operationType: OperationType) {
const sound = defaultStore.state[`sound_${operationType}`];
if (sound.type == null || !canPlay) return;
if (sound.type == null || !canPlay || !navigator.userActivation.hasBeenActive) return;
canPlay = false;
playMisskeySfxFile(sound).finally(() => {