fix: small desktop fixes

This commit is contained in:
Sorunome 2020-10-04 19:19:35 +02:00
parent 4dfd0dbc05
commit 540ff683d8
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
3 changed files with 5 additions and 4 deletions

View File

@ -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<Matrix> {
final Set verificationMethods = <KeyVerificationMethod>{
KeyVerificationMethod.numbers
};
if (!kIsWeb) {
if (PlatformInfos.isMobile) {
// emojis don't show in web somehow
verificationMethods.add(KeyVerificationMethod.emoji);
}

View File

@ -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:

View File

@ -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