Skip to content

Commit 6bebc98

Browse files
fix: Only restrict sending for free / limited mailboxes (#1677)
2 parents fdd2d15 + ae5bee2 commit 6bebc98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Mail/Views/New Message/ComposeMessageView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ struct ComposeMessageView: View {
327327
return
328328
}
329329

330-
guard let quotas = mailboxManager.mailbox.quotas, quotas.progression < 1 else {
330+
let mailbox = mailboxManager.mailbox
331+
let mailboxIsFull = mailbox.quotas?.progression ?? 0 >= 1
332+
if mailbox.isFree && mailbox.isLimited && mailboxIsFull {
331333
Task {
332334
if let liveDraft = draft.thaw() {
333335
try? liveDraft.realm?.write {

0 commit comments

Comments
 (0)