This commit is contained in:
parent
be493a9203
commit
9e530e4f17
@ -351,15 +351,11 @@ export const CreatePage = () => {
|
|||||||
setLoadingSpinnerDesc('Sending DM to signers/viewers')
|
setLoadingSpinnerDesc('Sending DM to signers/viewers')
|
||||||
|
|
||||||
// send DM to first signer if exists
|
// send DM to first signer if exists
|
||||||
const signer =
|
if (signers.length > 0) {
|
||||||
signers.length > 0 && signers[0].pubkey === usersPubkey
|
|
||||||
? signers[1]
|
|
||||||
: signers[0]
|
|
||||||
if (signer) {
|
|
||||||
await sendDM(
|
await sendDM(
|
||||||
fileUrl,
|
fileUrl,
|
||||||
encryptionKey,
|
encryptionKey,
|
||||||
signer.pubkey,
|
signers[0].pubkey,
|
||||||
nostrController,
|
nostrController,
|
||||||
true,
|
true,
|
||||||
setAuthUrl
|
setAuthUrl
|
||||||
|
Loading…
Reference in New Issue
Block a user