From 7db9258f5a167c980b13b9c50453909c27b392a2 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Sun, 16 Jun 2019 13:51:53 -0500 Subject: [PATCH] =?UTF-8?q?Sentry=20fix:=20Crash=20when=20popping=20out=20?= =?UTF-8?q?a=20draft=20before=20it=E2=80=99s=20loaded?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/flux/stores/draft-store.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/flux/stores/draft-store.ts b/app/src/flux/stores/draft-store.ts index ebbc8913b..fc3b38b1f 100644 --- a/app/src/flux/stores/draft-store.ts +++ b/app/src/flux/stores/draft-store.ts @@ -338,6 +338,7 @@ class DraftStore extends MailspringStore { } const session = await this.sessionForClientId(headerMessageId); + await session.prepare(); await session.changes.commit(); const draftJSON = session.draft().toJSON();