mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 22:34:43 +08:00
FIX: save whisper drafts (#5417)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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'),
|
||||
|
Reference in New Issue
Block a user