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 '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;

1
olm Submodule

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