Fix new post injected above unread sticky (#1868)

Refresh the discussion list instead of prepending the new post
This commit is contained in:
Sami Mazouz 2020-04-03 20:26:51 +01:00 committed by GitHub
parent 345ad4bc6d
commit 30942bdf38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ export default class DiscussionComposer extends ComposerBody {
app.store.createRecord('discussions').save(data).then(
discussion => {
app.composer.hide();
app.cache.discussionList.addDiscussion(discussion);
app.cache.discussionList.refresh();
m.route(app.route.discussion(discussion));
},
this.loaded.bind(this)