FIX: welcome topic title was not editable (#17950)

The topic title was not editable when composer was opened from the
welcome topic banner.
This commit is contained in:
Arpit Jalan 2022-08-16 21:27:40 +05:30 committed by GitHub
parent 3e010bc88c
commit f788c1b3e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,10 @@ export default class WelcomeTopicBanner extends Component {
}) })
.postStream.loadPostByPostNumber(1) .postStream.loadPostByPostNumber(1)
.then((post) => { .then((post) => {
post.topic.set("draft_key", Composer.EDIT); post.topic.setProperties({
draft_key: Composer.EDIT,
"details.can_edit": true,
});
topicController.send("editPost", post); topicController.send("editPost", post);
}); });
}); });