Merge branch 'develop' into drive-bulk

This commit is contained in:
syuilo 2025-05-10 12:35:36 +09:00
commit 28856ac0f5
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ export function playMisskeySfx(operationType: OperationType) {
playMisskeySfxFile(sound).then((succeed) => { playMisskeySfxFile(sound).then((succeed) => {
if (!succeed && sound.type === '_driveFile_') { if (!succeed && sound.type === '_driveFile_') {
// ドライブファイルが存在しない場合はデフォルトのサウンドを再生する // ドライブファイルが存在しない場合はデフォルトのサウンドを再生する
const soundName = PREF_DEF[`sound_${operationType}`].default.type as Exclude<SoundType, '_driveFile_'>; const soundName = PREF_DEF[`sound.on.${operationType}`].default.type as Exclude<SoundType, '_driveFile_'>;
if (_DEV_) console.log(`Failed to play sound: ${sound.fileUrl}, so play default sound: ${soundName}`); if (_DEV_) console.log(`Failed to play sound: ${sound.fileUrl}, so play default sound: ${soundName}`);
playMisskeySfxFileInternal({ playMisskeySfxFileInternal({
type: soundName, type: soundName,