Entering decryption key manually does not work because of encoded URI #37

Merged
s merged 2 commits from issue32 into main 2024-05-15 11:16:03 +00:00
Showing only changes of commit 6e5b6ccc02 - Show all commits

View File

@ -321,11 +321,15 @@ export const CreatePage = () => {
setLoadingSpinnerDesc('Sending DM to signers/viewers')
// send DM to first signer if exists
if (signers.length > 0) {
const signer =
signers.length > 0 && signers[0].pubkey === usersPubkey
? signers[1]
: signers[0]
if (signer) {
await sendDM(
fileUrl,
encryptionKey,
signers[0].pubkey,
signer.pubkey,
nostrController,
true,
setAuthUrl