FIX: regression unable to send any PMs if you have a PM draft

This commit is contained in:
Sam 2015-09-08 16:57:52 +10:00
parent 71892cc5f4
commit b2633098ee
1 changed files with 7 additions and 0 deletions

View File

@ -689,6 +689,13 @@ const Composer = RestModel.extend({
});
Composer.reopenClass({
open(opts) {
const composer = Discourse.__container__.lookup('store:main').createRecord('composer');
composer.open(opts);
return composer;
},
loadDraft(opts) {
opts = opts || {};