From 85b46336b179a3df8ce48b65b88b726b95d7ca06 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 26 Jun 2024 19:30:58 -0400 Subject: [PATCH] Better draft cleanup on submit. --- apps/ssb.json | 2 +- apps/ssb/tf-compose.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 68dd04e4..aca58ab4 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&4pRR+8wIBK6lGH9oJPmGFA9I5wvICvSq2G+XRHYqbBQ=.sha256" + "previous": "&TqpkOAi38Oi6gW6guh95KIvWY2M/vjBE8NLLNHK+M00=.sha256" } diff --git a/apps/ssb/tf-compose.js b/apps/ssb/tf-compose.js index 56d688c9..6b1d5d31 100644 --- a/apps/ssb/tf-compose.js +++ b/apps/ssb/tf-compose.js @@ -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); }