Skip to content

Commit 37726a8

Browse files
committed
fix(compose): Stop creating new draft copies after sending
Fixes: #644
1 parent a1f4949 commit 37726a8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app/compose/compose.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,10 @@ export class ComposeComponent implements AfterViewInit, OnDestroy, OnInit {
877877

878878
ngOnDestroy() {
879879
if (this.editor) {
880+
// turn off onChange handler because it changes the
881+
// msg_body and causes auto-save to trigger. See
882+
// https://github.com/runbox/runbox7/issues/644#issuecomment-1651655948
883+
this.editor.off('change');
880884
this.tinymce_plugin.remove(this.editor);
881885
}
882886
}

src/app/compose/draftdesk.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ export class DraftDeskComponent implements OnInit {
114114

115115
draftDeleted(messageId) {
116116
this.draftDeskservice.deleteDraft(messageId);
117-
this.updateDraftsInView();
118117
}
119118

120119
exitToTable() {

0 commit comments

Comments
 (0)