If adding the user's post when empty, just refresh

This commit is contained in:
Paul Frazee
2023-04-24 20:06:36 -05:00
parent f4da2f4442
commit 3e18f0f6a6
+3
View File
@@ -485,6 +485,9 @@ export class PostsFeedModel {
* Used by the composer to add their new posts
*/
async addPostToTop(uri: string) {
if (!this.slices.length) {
return this.refresh()
}
try {
const res = await this.rootStore.agent.app.bsky.feed.getPosts({
uris: [uri],