feat: mentions #56
@ -24,12 +24,12 @@ export function NoteCreator(props) {
|
|||||||
async function sendNote() {
|
async function sendNote() {
|
||||||
let ev = replyTo ? await publisher.reply(replyTo, note) : await publisher.note(note);
|
let ev = replyTo ? await publisher.reply(replyTo, note) : await publisher.note(note);
|
||||||
console.debug("Sending note: ", ev);
|
console.debug("Sending note: ", ev);
|
||||||
publisher.broadcast(ev)
|
publisher.broadcast(ev);
|
||||||
setNote("");
|
setNote("");
|
||||||
|
setActive(false);
|
||||||
if (typeof onSend === "function") {
|
if (typeof onSend === "function") {
|
||||||
onSend();
|
onSend();
|
||||||
}
|
}
|
||||||
setActive(false)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function attachFile() {
|
async function attachFile() {
|
||||||
|
Loading…
Reference in New Issue
Block a user