fluffychat merge

This commit is contained in:
ggurdin 2024-06-14 15:48:25 -04:00
commit 42bf07f477
3 changed files with 25 additions and 25 deletions

View file

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

View file

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

View file

@ -20,49 +20,48 @@ Future<DatabaseApi> flutterMatrixSdkDatabaseBuilder(Client client) async {
database = await _constructDatabase(client);
await database.open();
return database;
// #Pangea
// } catch (e) {
} catch (e, s) {
// #Pangea
ErrorHandler.logError(
e: e,
s: s,
m: "Failed to open matrix sdk database. Openning fallback database.",
);
// Pangea#
Logs().wtf('Unable to construct database!', e, s);
// Try to delete database so that it can created again on next init:
database?.delete().catchError(
// #Pangea
// (e, s) => Logs().w(
// 'Unable to delete database, after failed construction',
// e,
// s,
// ),
(e, s) {
Logs().w(
'Unable to delete database, after failed construction',
e,
s,
);
(err, s) {
ErrorHandler.logError(
e: e,
s: s,
m: "Failed to delete matrix database after failed construction.",
);
}
// (e, s) => Logs().wtf(
// 'Unable to delete database, after failed construction',
// e,
// s,
// ),
// Pangea#
);
// Send error notification:
// #Pangea
// final l10n = lookupL10n(PlatformDispatcher.instance.locale);
// ClientManager.sendInitNotification(
// l10n.initAppError,
// l10n.databaseBuildErrorBody(
// AppConfig.newIssueUrl.toString(),
// e.toString(),
// ),
// );
// Pangea#
try {
// Send error notification:
// #Pangea
// final l10n = lookupL10n(PlatformDispatcher.instance.locale);
// ClientManager.sendInitNotification(
// l10n.initAppError,
// l10n.databaseBuildErrorBody(
// AppConfig.newIssueUrl.toString(),
// e.toString(),
// ),
// );
// Pangea#
} catch (e, s) {
Logs().e('Unable to send error notification', e, s);
}
return FlutterHiveCollectionsDatabase.databaseBuilder(client);
}