Skip to content

Commit 6792416

Browse files
committed
chore(timeline): replace duplicate read receipt panic with plain error
1 parent 2497f0e commit 6792416

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,6 @@ impl<'a, P: RoomDataProvider> TimelineStateTransaction<'a, P> {
457457
}
458458

459459
if !duplicates.is_empty() {
460-
#[cfg(any(debug_assertions, test))]
461-
panic!("duplicate read receipts in this timeline: {duplicates:?}\n{:?}", self.items);
462-
463-
#[cfg(not(any(debug_assertions, test)))]
464460
tracing::error!(
465461
?duplicates,
466462
items = ?self.items,

0 commit comments

Comments
 (0)