chore: Disable web voice message again

This commit is contained in:
Christian Kußowski 2026-03-22 15:07:52 +01:00
commit 2a0405df08
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 4 additions and 4 deletions

View file

@ -61,8 +61,8 @@ class RecordingViewModelState extends State<RecordingViewModel> {
try {
final codec =
PlatformInfos
.isAndroid && // Blocked by https://github.com/llfbandit/record/issues/560
!PlatformInfos
.isIOS && // Blocked by https://github.com/llfbandit/record/issues/560
await audioRecorder.isEncoderSupported(AudioEncoder.opus)
? AudioEncoder.opus
: AudioEncoder.aacLc;

View file

@ -35,8 +35,8 @@ abstract class PlatformInfos {
static bool get supportsCustomImageResizer =>
PlatformInfos.isWeb || PlatformInfos.isMobile;
/// Web could also record in theory but currently only wav which is too large
static bool get platformCanRecord => (isMobile || isMacOS || isWeb);
/// Web could also record in theory but currently creates broken opus
static bool get platformCanRecord => (isMobile || isMacOS);
static String get clientName =>
'${AppSettings.applicationName.value} ${isWeb ? 'web' : Platform.operatingSystem}${kReleaseMode ? '' : 'Debug'}';