gracefully catch errors when parsing membership state

This commit is contained in:
Henry Hiles 2026-10-12 10:36:41 -04:00
commit 30a5fa100c
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 9 additions and 14 deletions

View file

@ -84,11 +84,11 @@ class const EventRenderer(
final child = event.redactedBy != null || event.relationType == "m.replace"
? null
: switch (event.content) {
Content(:final parseError?) => Row(
Content(:final parseError?, :final stackTrace) => Row(
children: [
ErrorDialog(
"An error occurred while parsing event ${event.eventId}:\n$parseError",
parseError.stackTrace,
stackTrace,
),
],
),