Skip to content

Commit

Permalink
Merge pull request #10059 from nextcloud/fix/issue-10045-alter-outbox…
Browse files Browse the repository at this point in the history
…-logic

fix: Alter Outbox logic to handle automated messages better
  • Loading branch information
SebastianKrupinski authored Aug 29, 2024
2 parents 7f4d65a + 9d0f80c commit 18f6d12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/OutboxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function update(
int $accountId,
string $subject,
string $body,
string $editorBody,
?string $editorBody,
bool $isHtml,
bool $smimeSign,
bool $smimeEncrypt,
Expand Down
4 changes: 4 additions & 0 deletions src/components/OutboxMessageListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,16 @@ export default {
if (error.data !== undefined) {
await this.outboxStore.updateMessage({ message: error.data[0], id: message.id })
}
}
},
async openModal() {
if (this.message.status === STATUS_IMAP_SENT_MAILBOX_FAIL) {
return
}
if (this.message.editorBody === null) {
return
}
await this.$store.dispatch('startComposerSession', {
type: 'outbox',
data: {
Expand Down

0 comments on commit 18f6d12

Please sign in to comment.