Skip to content

Commit

Permalink
Merge pull request #1655 from shadow-dot-cat/castaway/644_compose_del…
Browse files Browse the repository at this point in the history
…ete_draft

fix(compose): Stop creating new draft copies after sending
  • Loading branch information
castaway authored Feb 5, 2025
2 parents 703965d + 37726a8 commit 7a26591
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/app/compose/compose.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,10 @@ export class ComposeComponent implements AfterViewInit, OnDestroy, OnInit {

ngOnDestroy() {
if (this.editor) {
// turn off onChange handler because it changes the
// msg_body and causes auto-save to trigger. See
// https://github.com/runbox/runbox7/issues/644#issuecomment-1651655948
this.editor.off('change');
this.tinymce_plugin.remove(this.editor);
}
}
Expand Down
1 change: 0 additions & 1 deletion src/app/compose/draftdesk.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export class DraftDeskComponent implements OnInit {

draftDeleted(messageId) {
this.draftDeskservice.deleteDraft(messageId);
this.updateDraftsInView();
}

exitToTable() {
Expand Down

0 comments on commit 7a26591

Please sign in to comment.