say "Redacted event" instead of "Unknown event type" for previews of redacted events
This commit is contained in:
parent
e382499a2a
commit
47645ea327
1 changed files with 4 additions and 1 deletions
|
|
@ -533,7 +533,10 @@ class const EventRenderer(
|
|||
].map((child) => Padding(padding: .only(left: 4), child: child)),
|
||||
]
|
||||
else if (textOnly)
|
||||
Text("Unknown event type", style: errorStyle),
|
||||
Text(
|
||||
event.redactedBy == null ? "Unknown event type" : "Redacted event",
|
||||
style: errorStyle,
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue