cancel timer when removing composer

This commit is contained in:
Sam 2017-12-18 22:26:00 +11:00
parent 133d97402a
commit de20e36629

View File

@ -72,6 +72,10 @@ export default Ember.Component.extend({
this.set('oldPresenceState', this.get('presenceState'));
this.set('presenceState', stateObject);
if (isClosing) {
Ember.run.cancel(this._timeoutTimer);
}
},
_ACTIONS: ['edit', 'reply'],