update useProfile hook

This commit is contained in:
Ren Amamiya
2023-07-10 14:20:36 +07:00
parent 4e36b2d902
commit 2a4c3dd7c8
8 changed files with 19 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ export function ChatsListSelfItem({ data }: { data: any }) {
>
<div className="inline-flex h-6 w-6 shrink-0 items-center justify-center rounded border-t border-zinc-800/50 bg-zinc-900">
<Image
src={user?.image}
src={user?.picture || user?.image}
fallback={DEFAULT_AVATAR}
alt={data.pubkey}
className="h-6 w-6 rounded bg-white object-cover"