don't close publish modal automatically.
even if all relays responded with an OK the modal will still remain open so the user can look at the list of relays the note was published to.
This commit is contained in:
@ -42,15 +42,8 @@ export function NoteBroadcaster({
|
||||
}
|
||||
}
|
||||
|
||||
async function sendNote() {
|
||||
const results = await Promise.all(evs.map(a => sendEventToRelays(a)).flat());
|
||||
if (results.flat().every(a => a.ok)) {
|
||||
onClose();
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
sendNote().catch(console.error);
|
||||
Promise.all(evs.map(a => sendEventToRelays(a)).flat()).catch(console.error);
|
||||
}, []);
|
||||
|
||||
async function removeRelayFromResult(r: OkResponse) {
|
||||
|
Reference in New Issue
Block a user