Hide unknown event types

onboarding
Christian Pauly 5 years ago
parent d7e1dbcad1
commit 677134d7d2

@ -33,6 +33,9 @@ class Message extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (event.type == EventTypes.Unknown) {
return Container();
}
if (![EventTypes.Message, EventTypes.Sticker, EventTypes.Encrypted]
.contains(event.type)) {
return StateMessage(event);

Loading…
Cancel
Save