From 3e18f0f6a6c8e6643c15309c3a555162742a7fdd Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 24 Apr 2023 20:06:36 -0500 Subject: [PATCH] If adding the user's post when empty, just refresh --- src/state/models/feeds/posts.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/state/models/feeds/posts.ts b/src/state/models/feeds/posts.ts index d33dce1923..cbff707d07 100644 --- a/src/state/models/feeds/posts.ts +++ b/src/state/models/feeds/posts.ts @@ -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],