Better draft cleanup on submit.

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

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();
self.notify(undefined);
self.requestUpdate();
});
await tfrpc.rpc.appendMessage(this.whoami, message);
self.notify(undefined);
} catch (error) {
alert(error.message);
}