Better draft cleanup on submit.

This commit is contained in:
Cory McWilliams 2024-06-26 19:30:58 -04:00
parent 590afa7b01
commit 85b46336b1
2 changed files with 3 additions and 7 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🐌",
"previous": "&4pRR+8wIBK6lGH9oJPmGFA9I5wvICvSq2G+XRHYqbBQ=.sha256"
"previous": "&TqpkOAi38Oi6gW6guh95KIvWY2M/vjBE8NLLNHK+M00=.sha256"
}

View File

@ -215,12 +215,8 @@ class TfComposeElement extends LitElement {
console.log('encrypted as', message);
}
try {
await tfrpc.rpc.appendMessage(this.whoami, message).then(function () {
edit.innerText = '';
self.input();
await tfrpc.rpc.appendMessage(this.whoami, message);
self.notify(undefined);
self.requestUpdate();
});
} catch (error) {
alert(error.message);
}