Hide unknown event types

This commit is contained in:
Christian Pauly 2020-05-22 12:54:29 +02:00
parent 7ffb875d67
commit cdcd462ea5

View File

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