-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Threads: added support to read receipts (MSC3771) #6964
Conversation
Codecov ReportBase: 11.78% // Head: 11.77% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #6964 +/- ##
===========================================
- Coverage 11.78% 11.77% -0.02%
===========================================
Files 1611 1608 -3
Lines 158118 158028 -90
Branches 64239 64044 -195
===========================================
- Hits 18631 18603 -28
+ Misses 138858 138790 -68
- Partials 629 635 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some inline comments, otherwise lgtm
MXKRoomBubbleCellData *cellData = [self cellDataOfEventWithEventId:eventId]; | ||
if (cellData) | ||
{ | ||
NSString *threadId = readThreadIds[i] == [NSNull null] ? kMXEventTimelineMain : readThreadIds[i]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could simplify this after https://github.com/matrix-org/matrix-ios-sdk/pull/1617/files#r1004308936
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unthreaded RRs must be propagated to all threads. I've made the needed changes.
@@ -68,7 +68,7 @@ final class ThreadsCoordinator: NSObject, ThreadsCoordinatorProtocol { | |||
// Detect when view controller has been dismissed by gesture when presented modally (not in full screen). | |||
self.navigationRouter.toPresentable().presentationController?.delegate = self | |||
|
|||
guard parameters.threadId == nil else { | |||
guard parameters.threadId != nil else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't remember what this was doing but can you explain this change a bit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the guard as we need the pop completion block to be triggered for all cases. RoomViewControllers where not released when popped and RR where still sent even if the messages were not read.
- Update after review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some inline comments, otherwise lgtm
- Update after review
Kudos, SonarCloud Quality Gate passed! |
resolves #6663