fix: Remove logs in event constructor trycatch

This commit is contained in:
Christian Pauly 2020-09-07 12:53:35 +02:00
parent 8a104b34ff
commit 8899f4c677
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,6 @@ import '../famedlysdk.dart';
import '../matrix_api.dart'; import '../matrix_api.dart';
import 'database/database.dart' show DbRoomState, DbEvent; import 'database/database.dart' show DbRoomState, DbEvent;
import 'room.dart'; import 'room.dart';
import 'utils/logs.dart';
import 'utils/matrix_localizations.dart'; import 'utils/matrix_localizations.dart';
import 'utils/receipt.dart'; import 'utils/receipt.dart';
@ -110,8 +109,8 @@ class Event extends MatrixEvent {
unsigned['prev_content'] is Map) unsigned['prev_content'] is Map)
? unsigned['prev_content'] ? unsigned['prev_content']
: null; : null;
} catch (e, s) { } catch (_) {
Logs.error('Event constructor crashed: ${e.toString()}', s); // A strange bug in dart web makes this crash
} }
this.stateKey = stateKey; this.stateKey = stateKey;
this.originServerTs = originServerTs; this.originServerTs = originServerTs;

1
olm Submodule

@ -0,0 +1 @@
Subproject commit efd17631b16d1271a029e0af8f7d8e5ae795cc5d