Feature(reviews): fix #2457, add report functionality with reason

This commit is contained in:
Pieter Vander Vennet 2025-07-13 15:58:05 +02:00
parent dc62db7dcf
commit 7ce320075d
3 changed files with 89 additions and 10 deletions

View file

@ -452,9 +452,14 @@ export default class FeatureReviews {
public async deleteReview(review: Review & {signature: string}){
await MangroveReviews.deleteReview(await this._identity.getKeypair(), review)
this.removeReviewLocally(review)
}
public removeReviewLocally(review: Review){
this._reviews.set(
this._reviews.data.filter(r => r !== review)
)
}
/**