Close the composer completely if the reply is empty

This commit is contained in:
Toby Zerner 2015-06-25 10:34:37 +09:30
parent b6fb560359
commit cf0ea3d24a

View File

@ -136,8 +136,13 @@ export default class DiscussionPage extends mixin(Component, evented) {
}
app.pane.disable();
app.composer.minimize();
app.session.off('loggedIn', this.loggedInHandler);
if (app.composingReplyTo(discussion) && !app.composer.component.content()) {
app.composer.hide();
} else {
app.composer.minimize();
}
}
/**