Uh oh!
There was an error while loading. Please reload this page.
Feature/issue 783 unlimited attachment size - #893
Conversation
sosnovsky
commented
Nov 2, 2021
It'll be nice to have decrypt progress percentage in the future too, as it takes almost the same time as download for big files. |
sosnovsky
commented
Nov 2, 2021
Download is network bound and decryption is cpu bound. You could do both at the same time, and it should take half the time overall, if you do streaming decryption. #230 But it's not simple to do across the Swift/JS boundary. But it's possible. |
tomholub
commented
Nov 2, 2021
sosnovsky
commented
Nov 2, 2021
Got it, it'll be a great addition for app's functionality and will make large emails loading much faster. |
tomholub
commented
Nov 2, 2021
I'd like you to debug/finalize #854 . How about merging sequence? I suppose it may be easier to merge the big one first and then rebase this onto that, but we could do it the other way around if you think it's easier. Up to you. |
sosnovsky
commented
Nov 2, 2021
tomholub
commented
Nov 2, 2021
Tested, looks great |
tomholub
commented
Nov 3, 2021
@sosnovsky good to merge once conflicts addressed 👍 |
# Conflicts: # FlowCrypt/Controllers/Compose/ComposeViewController.swift # FlowCrypt/Controllers/Msg/MessageViewController.swift # FlowCrypt/Functionality/Mail Provider/Message Provider/MessageService.swift
sosnovsky
commented
Nov 3, 2021
@tomholub I merged |
There was a problem hiding this comment.
A detail - I'd prefer formatting like:
processedMessage =tryawait serviceActor.fetchDecryptAndRenderMsg(
message: input.objMessage,
path: input.path,
progressHandler:{[weak self] state inself?.handleFetchProgress(state: state)})Else all of the inputs have no space due to large indentation.
There was a problem hiding this comment.
Okay, I'll use such formatting in the next commits
| private func validateMessage(rawMimeData: Data, with passPhrase: String) { | ||
| handleFetchProgress(state: .decrypt) | ||
There was a problem hiding this comment.
I like explicit returns for the clarity :-) but don't insist.
This PR allows loading of attachments over 5mb and adds progress spinner for download process.
close#783
Tests(delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):