1
0
mirror of https://github.com/flarum/core.git synced 2025-07-17 14:51:19 +02:00

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

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)