From 8899f4c677f6f255db62f34a6ae46f92deaa1c88 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 7 Sep 2020 12:53:35 +0200 Subject: [PATCH] fix: Remove logs in event constructor trycatch --- lib/src/event.dart | 5 ++--- olm | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) create mode 160000 olm diff --git a/lib/src/event.dart b/lib/src/event.dart index 3c183e5..29dfb7b 100644 --- a/lib/src/event.dart +++ b/lib/src/event.dart @@ -27,7 +27,6 @@ import '../famedlysdk.dart'; import '../matrix_api.dart'; import 'database/database.dart' show DbRoomState, DbEvent; import 'room.dart'; -import 'utils/logs.dart'; import 'utils/matrix_localizations.dart'; import 'utils/receipt.dart'; @@ -110,8 +109,8 @@ class Event extends MatrixEvent { unsigned['prev_content'] is Map) ? unsigned['prev_content'] : null; - } catch (e, s) { - Logs.error('Event constructor crashed: ${e.toString()}', s); + } catch (_) { + // A strange bug in dart web makes this crash } this.stateKey = stateKey; this.originServerTs = originServerTs; diff --git a/olm b/olm new file mode 160000 index 0000000..efd1763 --- /dev/null +++ b/olm @@ -0,0 +1 @@ +Subproject commit efd17631b16d1271a029e0af8f7d8e5ae795cc5d