mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
FIX: save whisper drafts (#5417)
This commit is contained in:
@ -40,7 +40,8 @@ function loadDraft(store, opts) {
|
|||||||
draft: true,
|
draft: true,
|
||||||
composerState: Composer.DRAFT,
|
composerState: Composer.DRAFT,
|
||||||
composerTime: draft.composerTime,
|
composerTime: draft.composerTime,
|
||||||
typingTime: draft.typingTime
|
typingTime: draft.typingTime,
|
||||||
|
whisper: draft.whisper
|
||||||
});
|
});
|
||||||
return composer;
|
return composer;
|
||||||
}
|
}
|
||||||
|
@ -468,7 +468,8 @@ const Composer = RestModel.extend({
|
|||||||
topic: opts.topic,
|
topic: opts.topic,
|
||||||
targetUsernames: opts.usernames,
|
targetUsernames: opts.usernames,
|
||||||
composerTotalOpened: opts.composerTime,
|
composerTotalOpened: opts.composerTime,
|
||||||
typingTime: opts.typingTime
|
typingTime: opts.typingTime,
|
||||||
|
whisper: opts.whisper
|
||||||
});
|
});
|
||||||
|
|
||||||
if (opts.post) {
|
if (opts.post) {
|
||||||
@ -774,6 +775,7 @@ const Composer = RestModel.extend({
|
|||||||
categoryId: this.get('categoryId'),
|
categoryId: this.get('categoryId'),
|
||||||
postId: this.get('post.id'),
|
postId: this.get('post.id'),
|
||||||
archetypeId: this.get('archetypeId'),
|
archetypeId: this.get('archetypeId'),
|
||||||
|
whisper: this.get('whisper'),
|
||||||
metaData: this.get('metaData'),
|
metaData: this.get('metaData'),
|
||||||
usernames: this.get('targetUsernames'),
|
usernames: this.get('targetUsernames'),
|
||||||
composerTime: this.get('composerTime'),
|
composerTime: this.get('composerTime'),
|
||||||
|
Reference in New Issue
Block a user