Remove recent messages can freeze the UI #17564
Labels
A-Moderation
A-Performance
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Major
Severely degrades major functionality or product features, with no satisfactory workaround
T-Defect
As discussed in matrix-org/matrix-react-sdk#6114, the remove recent messages dialog can cause the UI to freeze for many seconds when redacting a lot of events at once. This is because there's no way to signal that redactions are being sent in bulk, which means that every individual
cli.redactEvent
call firesRoom.localEchoUpdated
twice just to queue itself up. TimelinePanel listens for these local echo updates and does a force update each time, meaning that if you redact n events, TimelinePanel will immediately do 2n rerenders.cc @gsouquet
The text was updated successfully, but these errors were encountered: