FIX: If the composer started open it didn't check for composer messages

This commit is contained in:
Robin Ward 2016-06-08 12:57:41 -04:00
parent 2169b1ecbc
commit e393e43ce5

View file

@ -90,11 +90,16 @@ const ComposerView = Ember.View.extend({
onDrag: sizePx => this.movePanels(sizePx)
});
afterTransition($replyControl, () => {
resize();
const triggerOpen = () => {
if (this.get('composer.composeState') === Composer.OPEN) {
this.appEvents.trigger('composer:opened');
}
};
triggerOpen();
afterTransition($replyControl, () => {
resize();
triggerOpen();
});
positioningWorkaround(this.$());
},