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:
parent
227b3b8dd7
commit
7129ffa1c7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user