parent
fcea27ea0b
commit
54706a0437
2 changed files with 21 additions and 6 deletions
|
@ -225,10 +225,22 @@ export class NotificationsFeedItemModel {
|
|||
}
|
||||
|
||||
setAdditionalData(additionalPost: AppBskyFeedDefs.PostView) {
|
||||
this.additionalPost = PostThreadModel.fromPostView(
|
||||
this.rootStore,
|
||||
additionalPost,
|
||||
)
|
||||
if (this.additionalPost) {
|
||||
this.additionalPost._replaceAll({
|
||||
success: true,
|
||||
headers: {},
|
||||
data: {
|
||||
thread: {
|
||||
post: additionalPost,
|
||||
},
|
||||
},
|
||||
})
|
||||
} else {
|
||||
this.additionalPost = PostThreadModel.fromPostView(
|
||||
this.rootStore,
|
||||
additionalPost,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue