mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Move queuedForTyping assignment (#5366)
This commit is contained in:
parent
329343be06
commit
4b919cd735
@ -165,7 +165,6 @@ export default Ember.Component.extend({
|
|||||||
if (topicId) { args.topic_id = topicId; }
|
if (topicId) { args.topic_id = topicId; }
|
||||||
if (postId) { args.post_id = postId; }
|
if (postId) { args.post_id = postId; }
|
||||||
|
|
||||||
const queuedForTyping = this.get('queuedForTyping');
|
|
||||||
composer.store.find('composer-message', args).then(messages => {
|
composer.store.find('composer-message', args).then(messages => {
|
||||||
if (this.isDestroying || this.isDestroyed) { return; }
|
if (this.isDestroying || this.isDestroyed) { return; }
|
||||||
|
|
||||||
@ -176,6 +175,7 @@ export default Ember.Component.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.set('checkedMessages', true);
|
this.set('checkedMessages', true);
|
||||||
|
const queuedForTyping = this.get('queuedForTyping');
|
||||||
messages.forEach(msg => msg.wait_for_typing ? queuedForTyping.addObject(msg) : this.send('popup', msg));
|
messages.forEach(msg => msg.wait_for_typing ? queuedForTyping.addObject(msg) : this.send('popup', msg));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user