-
Notifications
You must be signed in to change notification settings - Fork 497
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
Start DM on first message #6367
Conversation
Kudos, SonarCloud Quality Gate passed! |
Codecov Report
@@ Coverage Diff @@
## develop #6367 +/- ##
===========================================
+ Coverage 6.13% 6.19% +0.05%
===========================================
Files 1475 1476 +1
Lines 156165 156546 +381
Branches 62571 62735 +164
===========================================
+ Hits 9577 9691 +114
- Misses 146192 146451 +259
- Partials 396 404 +8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
📱 Scan the QR code below to install the build for this PR. If you can't scan the QR code you can install the build via this link: https://i.diawi.com/miYLKi |
@yostyle I observed a crash during my test I got it by filling a wrong matrix id (not an actual account) |
a8d0293
to
322b2f1
Compare
9cc6005
to
5eba402
Compare
@yostyle I did some tests |
5eba402
to
411cda8
Compare
Fixed |
@ismailgulek Hi, except the following small remark, all the points already mentioned during our first (@phlniji and I) reviews have been fixed. |
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.
LGTM - tests ok
Yes, i'll provide a review when appropriate. |
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 had some comment inline, otherwise looks sane to me.
@ismailgulek FYI I'm working with @phlniji to take into account your comment. We will ping you here when the PR will be ready for a new review |
dc213c8
to
ac1dda5
Compare
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.
second review : approved
@ismailgulek FYI this PR has been updated, your review is requested on the last commit of @phlniji which should fixed all your comments |
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.
Thanks for the changes, LGTM now. I just have new tiny question.
@@ -80,6 +80,9 @@ final class RoomCoordinator: NSObject, RoomCoordinatorProtocol { | |||
if let threadId = parameters.threadId { | |||
self.roomViewController = ThreadViewController.instantiate(withThreadId: threadId, | |||
configuration: parameters.displayConfiguration) | |||
} else if parameters.userId != nil { |
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.
Is this really needed? I think the view controller will be created with right parameters even if we remove this.
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.
Thx for your final review
I agree with you, the session seems provided latter to the view controller (via the - (void)displayNewDirectChatWithTargetUser:(nonnull MXUser*)directChatTargetUser session:(nonnull MXSession*)session
method)
I will check this point with @yostyle to have a third point of view before cleaning the code here
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.
You right session parameter is not needed. I removed it
A final UX review based on build is planned before merging this PR |
During UX Review, we observed an issue: the selected attachment is ignored, it is not sent in the created DM |
ac1dda5
to
8264d25
Compare
Clean code
8264d25
to
0483cd8
Compare
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.
Approved
Note: In the last commit we retrieve (in the createOrRestoreDiscussionIfNeeded
completion block) the actual input tool bar after the potential DM creation. The input tool bar may have been replaced by this method
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.
@yostyle I did some additional tests by enabling the new Layout
The empty DM is not displayed correctly when I try to start a new DM
I got only a white screen (no header, no input tool bar...)
Must be fixed before merging
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.
Tests with the new layout succeeded
Kudos, SonarCloud Quality Gate passed! |
#5864