diff --git a/src/app/chats/chat.tsx b/src/app/chats/chat.tsx index f9d15696..5dfeb321 100644 --- a/src/app/chats/chat.tsx +++ b/src/app/chats/chat.tsx @@ -11,6 +11,7 @@ import { useNDK } from '@libs/ndk/provider'; import { useStorage } from '@libs/storage/provider'; import { LoaderIcon } from '@shared/icons'; +import { User } from '@shared/user'; import { useStronghold } from '@stores/stronghold'; @@ -35,6 +36,7 @@ export function ChatScreen() { message={message} userPubkey={db.account.pubkey} userPrivkey={userPrivkey} + self={message.pubkey === db.account.pubkey} /> ); }, @@ -71,7 +73,10 @@ export function ChatScreen() {
+
{createdAt}
+Decrypting...
- ) : ( -- {richContent.parsed} -
-Decrypting...
+ ) : ( ++ {richContent.parsed} +
++
{user?.name || user?.display_name || user?.displayName}
diff --git a/src/shared/icons/community.tsx b/src/shared/icons/community.tsx new file mode 100644 index 00000000..e1899bcc --- /dev/null +++ b/src/shared/icons/community.tsx @@ -0,0 +1,19 @@ +import { SVGProps } from 'react'; + +export function CommunityIcon(props: JSX.IntrinsicAttributes & SVGProps{nip05}
+{nip05}
+- {metadata.summary} -
- + {metadata.summary ? ( ++ {metadata.summary} +
+ ) : null} + {metadata.publishedAt.toString()}+
{data.description}
)} - - {domain.hostname} - + {domain.hostname}+
{user?.name || user?.display_name || user?.displayName}
+
{user?.nip05 || user?.username || displayNpub(pubkey, 16)}