You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/components/menu/items/CopyAccountId/guard.ts

15 lines
296 B
TypeScript

import { PubKey } from '../../../../session/types';
/**
* We want to show the copyId for private and not blinded chats only
*/
export function showCopyAccountIdAction({
isPrivate,
pubkey,
}: {
isPrivate: boolean;
pubkey: string;
}) {
return isPrivate && !PubKey.isBlinded(pubkey);
}