fix(mobile): do not show audio block for mobile (#12249)

fix AF-2608
This commit is contained in:
pengx17
2025-05-13 09:01:40 +00:00
parent 0b6d1eacc8
commit 27089e2599
@@ -6,6 +6,10 @@ import type { ExtensionType } from '@blocksuite/store';
export function patchForAudioEmbedView(reactToLit: ReactToLit): ExtensionType {
return {
setup: di => {
// do not show audio block on mobile
if (BUILD_CONFIG.isMobileEdition) {
return;
}
di.override(AttachmentEmbedConfigIdentifier('audio'), () => ({
name: 'audio',
check: (model, maxFileSize) =>