From 71afa178066f39eed0e1555f7471e7c9eb76cbcd Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 10 Apr 2024 18:01:04 +0200 Subject: [PATCH 1/3] fix: Background color of images with transparency --- lib/pages/chat/events/image_bubble.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pages/chat/events/image_bubble.dart b/lib/pages/chat/events/image_bubble.dart index de0799144..83d902d28 100644 --- a/lib/pages/chat/events/image_bubble.dart +++ b/lib/pages/chat/events/image_bubble.dart @@ -70,6 +70,7 @@ class ImageBubble extends StatelessWidget { final borderRadius = this.borderRadius ?? BorderRadius.circular(AppConfig.borderRadius); return Material( + color: Colors.transparent, shape: RoundedRectangleBorder( borderRadius: borderRadius, side: BorderSide( From 1b9eb6c61f7c261725bb118bd9c96d44f98148a1 Mon Sep 17 00:00:00 2001 From: Krille Date: Thu, 11 Apr 2024 08:03:12 +0200 Subject: [PATCH 2/3] docs: Fix typo in android app description --- android/fastlane/metadata/android/en-US/full_description.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/fastlane/metadata/android/en-US/full_description.txt b/android/fastlane/metadata/android/en-US/full_description.txt index 2824f2cba..e3b1bf5a9 100644 --- a/android/fastlane/metadata/android/en-US/full_description.txt +++ b/android/fastlane/metadata/android/en-US/full_description.txt @@ -22,7 +22,7 @@ Decentralized There is no "FluffyChat server" you are forced to use. Use the server you find trustworthy or host your own. Compatible -Compatible with Element, Fractal, Nekho and all matrix messengers. +Compatible with Element, Fractal, Nheko and all matrix messengers. FluffyChat comes with a dream From 5128785c66f1762f274655edffbeb3d0bb5de8c1 Mon Sep 17 00:00:00 2001 From: Krille Date: Thu, 11 Apr 2024 08:15:12 +0200 Subject: [PATCH 3/3] fix: More logs when database fails to init and trycatch sendInitNotification --- .../builder.dart | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/lib/utils/matrix_sdk_extensions/flutter_matrix_dart_sdk_database/builder.dart b/lib/utils/matrix_sdk_extensions/flutter_matrix_dart_sdk_database/builder.dart index 301d0c6ee..8c182716e 100644 --- a/lib/utils/matrix_sdk_extensions/flutter_matrix_dart_sdk_database/builder.dart +++ b/lib/utils/matrix_sdk_extensions/flutter_matrix_dart_sdk_database/builder.dart @@ -24,25 +24,30 @@ Future flutterMatrixSdkDatabaseBuilder(Client client) async { database = await _constructDatabase(client); await database.open(); return database; - } catch (e) { + } catch (e, s) { + Logs().wtf('Unable to construct database!', e, s); // Try to delete database so that it can created again on next init: database?.delete().catchError( - (e, s) => Logs().w( + (e, s) => Logs().wtf( 'Unable to delete database, after failed construction', e, s, ), ); - // Send error notification: - final l10n = lookupL10n(PlatformDispatcher.instance.locale); - ClientManager.sendInitNotification( - l10n.initAppError, - l10n.databaseBuildErrorBody( - AppConfig.newIssueUrl.toString(), - e.toString(), - ), - ); + try { + // Send error notification: + final l10n = lookupL10n(PlatformDispatcher.instance.locale); + ClientManager.sendInitNotification( + l10n.initAppError, + l10n.databaseBuildErrorBody( + AppConfig.newIssueUrl.toString(), + e.toString(), + ), + ); + } catch (e, s) { + Logs().e('Unable to send error notification', e, s); + } return FlutterHiveCollectionsDatabase.databaseBuilder(client); }