mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 07:33:37 +08:00
FIX: regression unable to send any PMs if you have a PM draft
This commit is contained in:
parent
71892cc5f4
commit
b2633098ee
|
@ -689,6 +689,13 @@ const Composer = RestModel.extend({
|
||||||
});
|
});
|
||||||
|
|
||||||
Composer.reopenClass({
|
Composer.reopenClass({
|
||||||
|
|
||||||
|
open(opts) {
|
||||||
|
const composer = Discourse.__container__.lookup('store:main').createRecord('composer');
|
||||||
|
composer.open(opts);
|
||||||
|
return composer;
|
||||||
|
},
|
||||||
|
|
||||||
loadDraft(opts) {
|
loadDraft(opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user