FIX: Don't re-render if you find composer messages after destroying

This commit is contained in:
Robin Ward
2017-08-26 00:41:24 -04:00
parent b93f491035
commit a77ede05e2

View File

@@ -170,6 +170,7 @@ export default Ember.Component.extend({
const queuedForTyping = this.get('queuedForTyping');
composer.store.find('composer-message', args).then(messages => {
if (this.isDestroying || this.isDestroyed) { return; }
// Checking composer messages on replies can give us a list of links to check for
// duplicates