avoid un-needed reloads for diffs

This commit is contained in:
Henry Hiles 2026-10-23 17:02:41 -04:00
commit 868023a4a1
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -53,7 +53,8 @@ class const PinnedEventsDiff(
.new(roomId: roomId, eventId: change.$1),
),
)) {
AsyncData(value: final event?) => InkWell(
// Keeps showing the event while it reloads
AsyncValue(value: final event?) => InkWell(
borderRadius: .circular(4),
hoverColor: color.withValues(alpha: 0.12),
onTap: jumpToEvent == null