Show pub-key for dms with no response :(

This commit is contained in:
Kieran 2023-01-14 00:24:32 +00:00
parent f4dca89c05
commit b46520ebe9
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -13,7 +13,7 @@ export default function MessagesPage() {
const dms = useSelector<any, RawEvent[]>(s => s.login.dms);
const pubKeys = useMemo(() => {
return Array.from(new Set<string>(dms.map(a => a.pubkey)));
return Array.from(new Set<string>(dms.map(a => [a.pubkey, ...a.tags.filter(b => b[0] === "p").map(b => b[1])]).flat()));
}, [dms]);
function person(pubkey: string) {