mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-29 08:21:15 +00:00
Fix unmuting users with no metadata
This commit is contained in:
parent
bc8d273976
commit
8df977a8f5
@ -27,7 +27,7 @@ const Muted: Component = () => {
|
|||||||
|
|
||||||
const [isFetching, setIsFetching] = createSignal(true);
|
const [isFetching, setIsFetching] = createSignal(true);
|
||||||
|
|
||||||
const user = (pubkey: string) => mutedUsers[pubkey];
|
const user = (pubkey: string) => mutedUsers[pubkey] || { pubkey, npub: hexToNpub(pubkey) };
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
if (account && account.isKeyLookupDone) {
|
if (account && account.isKeyLookupDone) {
|
||||||
|
@ -96,7 +96,7 @@ export const nip05Verification = (user: PrimalUser | undefined) => {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.nip05.startsWith('_@')) {
|
if (user.nip05?.startsWith('_@')) {
|
||||||
return user.nip05.slice(2);
|
return user.nip05.slice(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user