FIX: save whisper drafts (#5417)

This commit is contained in:
Maja Komel
2017-12-14 01:35:08 +01:00
committed by Sam
parent 5db3d39b05
commit 52e38e5527
2 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,8 @@ function loadDraft(store, opts) {
draft: true,
composerState: Composer.DRAFT,
composerTime: draft.composerTime,
typingTime: draft.typingTime
typingTime: draft.typingTime,
whisper: draft.whisper
});
return composer;
}

View File

@ -468,7 +468,8 @@ const Composer = RestModel.extend({
topic: opts.topic,
targetUsernames: opts.usernames,
composerTotalOpened: opts.composerTime,
typingTime: opts.typingTime
typingTime: opts.typingTime,
whisper: opts.whisper
});
if (opts.post) {
@ -774,6 +775,7 @@ const Composer = RestModel.extend({
categoryId: this.get('categoryId'),
postId: this.get('post.id'),
archetypeId: this.get('archetypeId'),
whisper: this.get('whisper'),
metaData: this.get('metaData'),
usernames: this.get('targetUsernames'),
composerTime: this.get('composerTime'),