If adding the user's post when empty, just refresh (#530)
This commit is contained in:
parent
f4da2f4442
commit
26cef73b5c
1 changed files with 3 additions and 0 deletions
|
@ -485,6 +485,9 @@ export class PostsFeedModel {
|
||||||
* Used by the composer to add their new posts
|
* Used by the composer to add their new posts
|
||||||
*/
|
*/
|
||||||
async addPostToTop(uri: string) {
|
async addPostToTop(uri: string) {
|
||||||
|
if (!this.slices.length) {
|
||||||
|
return this.refresh()
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const res = await this.rootStore.agent.app.bsky.feed.getPosts({
|
const res = await this.rootStore.agent.app.bsky.feed.getPosts({
|
||||||
uris: [uri],
|
uris: [uri],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue