Skip to content

Commit

Permalink
Fix bug (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat authored Jan 9, 2023
2 parents 72733ed + 5267adf commit f158482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/Pages/DirectMessagesPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import Avatar from '../../Components/Avatar'
import Icon from 'react-native-vector-icons/FontAwesome5'
import { useTranslation } from 'react-i18next'
import { username } from '../../Functions/RelayFunctions/Users'
import { getPublicKey } from '../../lib/nostr/Nip19'
import { getNip19Key } from '../../lib/nostr/Nip19'

export const DirectMessagesPage: React.FC = () => {
const theme = useTheme()
Expand Down Expand Up @@ -82,7 +82,7 @@ export const DirectMessagesPage: React.FC = () => {

const onPressOpenConversation: (sendPubKey: string) => void = (sendPubKey) => {
if (sendPubKey !== '' && publicKey) {
const contactPubKey = getPublicKey(sendPubKey)
const contactPubKey = getNip19Key(sendPubKey)
const conversationId = generateConversationId(publicKey, contactPubKey)
const conversationPath = getConversationPath(conversationId, contactPubKey)
goToPage(conversationPath)
Expand Down

0 comments on commit f158482

Please sign in to comment.