Skip to content

Commit 347ea4f

Browse files
authored
Merge pull request #486 from jorgeblacio/email_more_menu_fix
Fixed missing FW option on email detail, and a file attachment bug.
2 parents 37c1074 + e9e74d4 commit 347ea4f

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

iOS-Email-Client/Controllers/ComposeViewController.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -602,11 +602,6 @@ class ComposeViewController: UIViewController {
602602
}
603603

604604
@IBAction func didPressAttachment(_ sender: UIButton) {
605-
//derpo
606-
guard fileManager.registeredFiles.count < 5 else {
607-
self.showAlert(String.localize("ATTACHMENT_CAP"), message: String.localize("ATTACHMENT_CAP_SIZE"), style: .alert)
608-
return
609-
}
610605
self.showAttachmentDrawer(true)
611606
}
612607

iOS-Email-Client/Interfaces/EmailMoreOptionsInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class EmailMoreOptionsInterface: MoreOptionsViewInterface {
6969
var delegate: EmailMoreOptionsInterfaceDelegate?
7070

7171
init(email: Email) {
72-
options = [.reply, .replyAll, .delete, .mark]
72+
options = [.reply, .replyAll, .forward, .delete, .mark]
7373
optionsCount = 4
7474
if (email.isSpam) {
7575
options.append(.notSpam)

iOS-Email-Client/Managers/CriptextFileManager.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class CriptextFileManager {
4242
return false
4343
}
4444
let fileSize = Int(truncating: fileAttributes[.size] as! NSNumber)
45-
guard self.availableSize(addedSize: fileSize) else {
45+
guard self.availableSize(addedSize: fileSize),
46+
fileSize != 0 else {
4647
self.delegate?.fileError(message: String.localize("EXCEEDS_MAX_SIZE", arguments: File.prettyPrintSize(size: MAX_SIZE)))
4748
return false
4849
}

0 commit comments

Comments
 (0)