refactor: Remove native imaging and enable web worker
This commit is contained in:
parent
040c18d80f
commit
70d2a81fee
5 changed files with 10 additions and 113 deletions
|
|
@ -14,7 +14,6 @@ import 'package:universal_html/html.dart' as html;
|
|||
import 'package:fluffychat/config/setting_keys.dart';
|
||||
import 'package:fluffychat/l10n/l10n.dart';
|
||||
import 'package:fluffychat/utils/custom_http_client.dart';
|
||||
import 'package:fluffychat/utils/custom_image_resizer.dart';
|
||||
import 'package:fluffychat/utils/init_with_restore.dart';
|
||||
import 'package:fluffychat/utils/platform_infos.dart';
|
||||
import 'matrix_sdk_extensions/flutter_matrix_dart_sdk_database/builder.dart';
|
||||
|
|
@ -95,7 +94,10 @@ abstract class ClientManager {
|
|||
}
|
||||
|
||||
static NativeImplementations get nativeImplementations => kIsWeb
|
||||
? const NativeImplementationsDummy()
|
||||
? NativeImplementationsWebWorker(
|
||||
Uri.parse('native_executor.js'),
|
||||
timeout: const Duration(minutes: 1),
|
||||
)
|
||||
: NativeImplementationsIsolate(
|
||||
compute,
|
||||
vodozemacInit: () => vod.init(wasmPath: './assets/assets/vodozemac/'),
|
||||
|
|
@ -127,9 +129,6 @@ abstract class ClientManager {
|
|||
AuthenticationTypes.sso,
|
||||
},
|
||||
nativeImplementations: nativeImplementations,
|
||||
customImageResizer: PlatformInfos.isMobile || kIsWeb
|
||||
? customImageResizer
|
||||
: null,
|
||||
defaultNetworkRequestTimeout: const Duration(minutes: 30),
|
||||
enableDehydratedDevices: true,
|
||||
shareKeysWith:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue