Skip to content

Commit 227f68c

Browse files
committed
feat(timeline): consider unthreaded read receipts for ReceiptThread::Main timelines when building computing them for timeline items
1 parent 3d9d5c6 commit 227f68c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,9 @@ impl<P: RoomDataProvider> TimelineStateTransaction<'_, P> {
515515
}
516516

517517
for (user_id, receipt) in receipts {
518-
if own_receipt_thread == ReceiptThread::Unthreaded {
519-
// If the own receipt thread is unthreaded, we maintain maximal
518+
if matches!(own_receipt_thread, ReceiptThread::Unthreaded | ReceiptThread::Main)
519+
{
520+
// If the own receipt thread is unthreaded or main, we maintain maximal
520521
// compatibility with clients using either unthreaded or main-thread read
521522
// receipts by allowing both here.
522523
if !matches!(

0 commit comments

Comments
 (0)