Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show in nostr msg that the sender is not verified #219

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/nostr/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export enum EventKind {

export const npubLength = 64

export const enutsPubkey = 'npub1dx5q2el8nd4eh3eg9t2e25fd7zuqg7zxz6ldkc3uzgh66ss2yc6st288sj'

/**
* Regex to match a mnemonic seed
*/
Expand Down
4 changes: 2 additions & 2 deletions src/screens/Payment/Processing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { IMintUrl } from '@model'
import type { TBeforeRemoveEvent, TProcessingPageProps } from '@model/nav'
import { preventBack } from '@nav/utils'
import { relay } from '@nostr/class/Relay'
import { EventKind } from '@nostr/consts'
import { enutsPubkey, EventKind } from '@nostr/consts'
import { encrypt } from '@nostr/crypto'
import { useThemeContext } from '@src/context/Theme'
import { NS } from '@src/i18n'
Expand Down Expand Up @@ -202,7 +202,7 @@ export default function ProcessingScreen({ navigation, route }: TProcessingPageP
)
return
}
const msg = `${userNostrNpub || nostr.senderName} just sent you ${amount} Sat in Ecash using the eNuts wallet!\n\n ${token}`
const msg = `${userNostrNpub || nostr.senderName} (sender not verified) just sent you ${amount} Sat in Ecash using ${enutsPubkey}!\n\n ${token}`
const cipherTxt = await encrypt(sk, nostr.receiverNpub, msg)
const event = {
kind: EventKind.DirectMessage,
Expand Down
Loading