Skip to content

Commit

Permalink
Merge pull request #942 from Infomaniak/reply
Browse files Browse the repository at this point in the history
fix(Reply): Reply action fixed
  • Loading branch information
valentinperignon committed Aug 23, 2023
2 parents 933e70a + da81e25 commit 87d31b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MailCore/Cache/Actions/ActionsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,12 @@ public class ActionsManager: ObservableObject {
}

private func replyOrForward(messages: [Message], mode: ReplyMode) throws {
assert(messages.count == 1, "Cannot reply to more than one message")
guard let replyingMessage = messages.lastMessageToExecuteAction(currentMailboxEmail: mailboxManager.mailbox.email) else {
throw MailError.localMessageNotFound
}

Task { @MainActor in
navigationState?.messageReply = MessageReply(message: replyingMessage, replyMode: .replyAll)
navigationState?.messageReply = MessageReply(message: replyingMessage, replyMode: mode)
}
}

Expand Down

0 comments on commit 87d31b7

Please sign in to comment.