Uh oh!
There was an error while loading. Please reload this page.
Gmail conversation view - #657
Conversation
Kharchevskyi
commented
Oct 12, 2021
tomholub
commented
Oct 12, 2021
looks good so far |
Kharchevskyi
commented
Oct 12, 2021
Kharchevskyi
commented
Oct 12, 2021
@tomholub is it ok to show snippet as a subtitle? or it's better to show subject for thread |
tomholub
commented
Oct 13, 2021
Subject is more appropriate. You can see yourself, half of the messages are encrypted - like that, user would never be able to find the conversation they are looking for.
Let's start with sender and time, then re-evaluate. |
Kharchevskyi
commented
Oct 16, 2021
ivan-ushakov
commented
Nov 4, 2021
For example, this file was removed from current master branch: But in this branch it is used across several view controllers |
ivan-ushakov
commented
Nov 4, 2021
Now I see that it was typo fix in view controller's name: Let me continue with merge |
tomholub
commented
Nov 4, 2021
I know this won't be easy - please see how far you can get. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ivan-ushakov
commented
Nov 4, 2021
Do we need this in console? Looks like trace level to me: |
tomholub
commented
Nov 4, 2021
Agree, the draft logs should be removed. Someone may add them back just for debugging a particular thing if they need to, but not useful to keep in genera. |
tomholub
left a comment
There was a problem hiding this comment.
Looking good so far, dots below are just to highlight
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| onCompletion(MessageAction.markAsRead(false), .init(message: self.input.objMessage)) | ||
| navigationController?.popViewController(animated: true) | ||
| } catch { | ||
| showToast("Could not mark message as unread: \(error)") |
There was a problem hiding this comment.
maybe handleOpErr(operation: .markUnread) for consistency?
There was a problem hiding this comment.
He's not available for the next few days. Can file an issue for later.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ivan-ushakov
commented
Nov 4, 2021
@tomholub but test expects: |
tomholub
commented
Nov 4, 2021
If this was indeed a retry (we already tried pass phrase in the test once and it was wrong, and now we are retrying) than the test is correct, meaning the implementation should be adjusted to match the test. |
We don't have |
tomholub
commented
Nov 4, 2021
See how the code behaves on master: privatefunc handlePassPhraseEntry(rawMimeData:Data, with passPhrase:String){showSpinner("loading_title".localized, isUserInteractionEnabled:true)Task{do{letmatched=tryawait serviceActor.checkAndPotentiallySaveEnteredPassPhrase(passPhrase)if matched {
processedMessage =tryawait serviceActor.decryptAndProcessMessage(mime: rawMimeData)handleReceivedMessage()}else{handleWrongPathPhrase(for: rawMimeData, with: passPhrase)}}catch{handleError(error)}}}the code should work the same on this branch. The first dialog gets shown phrase the first time (originally based on .needPassPhrase - not shown above), and produces a pass phrase dialog. User enters pass phrase. That gets handled by the code above, which will check if the pass phrase is good and produce another dialog, which will be the "wrong pass phrase" dialog. And again until user cancels or good pass phrase is entered. |
tomholub
left a comment
There was a problem hiding this comment.
Thanks! Still need to manually run this to confirm.
tomholub
left a comment
There was a problem hiding this comment.
Thank you Ivan for getting it up to master!
I'll merge it but there will still be some fixes to do after:
- download percentage is not getting rendered anymore - I think
- with a very long subject, the number of messages in thread gets hidden because it's at the end






This PR add conversation view for gmail
close#608
close#725
Tests :
Manual testing:
Imap/Gmail
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):