Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus

say "Redacted event" instead of "Unknown event type" for previews of redacted events

This commit is contained in:
Henry Hiles 2026-11-04 12:48:29 -05:00
commit 47645ea327
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -533,7 +533,10 @@ class const EventRenderer(
].map((child) => Padding(padding: .only(left: 4), child: child)), ].map((child) => Padding(padding: .only(left: 4), child: child)),
] ]
else if (textOnly) else if (textOnly)
Text("Unknown event type", style: errorStyle), Text(
event.redactedBy == null ? "Unknown event type" : "Redacted event",
style: errorStyle,
),
], ],
); );
} }