Skip to content

Commit 5f81739

Browse files
committed
fix: Only replace UTDs in pinned timeline with decrypted events that have the same event ID
1 parent ce7e7b3 commit 5f81739

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/matrix-sdk-ui/src/timeline/controller/state_transaction.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ impl<'a, P: RoomDataProvider> TimelineStateTransaction<'a, P> {
251251
&& let Some(event) = self.items.get(timeline_item_index)
252252
&& event
253253
.as_event()
254-
.map(|e| e.content().is_unable_to_decrypt())
254+
.map(|e| {
255+
e.content().is_unable_to_decrypt() && e.event_id() == Some(&event_id)
256+
})
255257
.unwrap_or_default()
256258
{
257259
// Except when this is an UTD transitioning into a decrypted event.

0 commit comments

Comments
 (0)