mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
Hide unknown event types
This commit is contained in:
parent
7ffb875d67
commit
cdcd462ea5
@ -33,6 +33,9 @@ class Message extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
if (event.type == EventTypes.Unknown) {
|
||||||
|
return Container();
|
||||||
|
}
|
||||||
if (![EventTypes.Message, EventTypes.Sticker, EventTypes.Encrypted]
|
if (![EventTypes.Message, EventTypes.Sticker, EventTypes.Encrypted]
|
||||||
.contains(event.type)) {
|
.contains(event.type)) {
|
||||||
return StateMessage(event);
|
return StateMessage(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user