diff --git a/lib/components/matrix.dart b/lib/components/matrix.dart index 01e46ad..8c0cf95 100644 --- a/lib/components/matrix.dart +++ b/lib/components/matrix.dart @@ -21,6 +21,7 @@ import '../utils/beautify_string_extension.dart'; import '../utils/famedlysdk_store.dart'; import '../utils/presence_extension.dart'; import '../views/key_verification.dart'; +import '../utils/platform_infos.dart'; import 'avatar.dart'; class Matrix extends StatefulWidget { @@ -212,7 +213,7 @@ class MatrixState extends State { final Set verificationMethods = { KeyVerificationMethod.numbers }; - if (!kIsWeb) { + if (PlatformInfos.isMobile) { // emojis don't show in web somehow verificationMethods.add(KeyVerificationMethod.emoji); } diff --git a/pubspec.lock b/pubspec.lock index eacd935..e9511b5 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -327,7 +327,7 @@ packages: name: flutter_matrix_html url: "https://pub.dartlang.org" source: hosted - version: "0.1.5" + version: "0.1.7" flutter_olm: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 8ae84b4..411e6a4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -50,7 +50,7 @@ dependencies: open_file: ^3.0.1 mime_type: ^0.3.0 bot_toast: ^3.0.0 - flutter_matrix_html: ^0.1.5 + flutter_matrix_html: ^0.1.7 moor: ^3.3.1 sqlite3_flutter_libs: ^0.2.0 sqlite3: ^0.1.4 @@ -87,7 +87,7 @@ flutter_icons: # The following section is specific to Flutter. flutter: - # Adds code generation (synthetic package) support + # Adds code generation (synthetic package) support generate: true