Skip to content

Commit

Permalink
Fix attempt - Removal of deleted content from private list (#3030)
Browse files Browse the repository at this point in the history
* Improve deleted content interaction in private list

* Don't show 3-dot menu on hidden content

---------

Co-authored-by: miko <[email protected]>
  • Loading branch information
keikari and miko authored Dec 19, 2023
1 parent c2604e3 commit 4c6114a
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 186 deletions.
8 changes: 7 additions & 1 deletion ui/component/claimMenuList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ import ClaimPreview from './view';

const select = (state, props) => {
const { uri } = props;
const claim = selectClaimForUri(state, uri, false);
// This is used to handle deleted content in lists
const placeholderForDeletedClaim = {
canonical_url: uri,
permanent_url: uri,
value_type: 'deleted',
};
const claim = selectClaimForUri(state, uri, false) || placeholderForDeletedClaim;
const collectionId = props.collectionId;
const repostedClaim = claim?.reposted_claim;
const isRepost = Boolean(claim?.reposted_claim || claim?.value?.claim_hash);
Expand Down
Loading

0 comments on commit 4c6114a

Please sign in to comment.