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.
15 lines
296 B
TypeScript
15 lines
296 B
TypeScript
8 months ago
|
import { PubKey } from '../../../../session/types';
|
||
|
|
||
5 months ago
|
/**
|
||
|
* We want to show the copyId for private and not blinded chats only
|
||
|
*/
|
||
8 months ago
|
export function showCopyAccountIdAction({
|
||
|
isPrivate,
|
||
|
pubkey,
|
||
|
}: {
|
||
|
isPrivate: boolean;
|
||
|
pubkey: string;
|
||
|
}) {
|
||
|
return isPrivate && !PubKey.isBlinded(pubkey);
|
||
|
}
|