This commit is contained in:
boufni95 2025-07-23 21:39:15 +00:00
parent 544d148f2d
commit efe1e03609

View file

@ -376,7 +376,7 @@ export default class {
return return
} }
const tokens = devices.map(d => d.firebase_messaging_token) const tokens = devices.map(d => d.firebase_messaging_token)
const ck = nip44.getConversationKey(Buffer.from(app.nostr_public_key, 'hex'), appUser.nostr_public_key) const ck = nip44.getConversationKey(Buffer.from(app.nostr_private_key, 'hex'), appUser.nostr_public_key)
const j = JSON.stringify(op) const j = JSON.stringify(op)
const encrypted = nip44.encrypt(j, ck) const encrypted = nip44.encrypt(j, ck)
const encryptedData: { encrypted: string, app_npub: string } = { encrypted, app_npub: app.nostr_public_key } const encryptedData: { encrypted: string, app_npub: string } = { encrypted, app_npub: app.nostr_public_key }