mirror of
https://github.com/flarum/framework.git
synced 2025-03-30 19:55:29 +08:00
Fix new post injected above unread sticky (#1868)
Refresh the discussion list instead of prepending the new post
This commit is contained in:
parent
345ad4bc6d
commit
30942bdf38
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user