1
0
mirror of https://github.com/flarum/core.git synced 2025-07-18 07:11:17 +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 c84dd4d5bf
commit 4ded0ffbb5

View File

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