From d9782aa0fb4b9ac54294806345dea11ab4dd6ae4 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 2 Sep 2023 13:37:50 +0000 Subject: [PATCH] Automatically reply encrypted to the same recipients. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4442 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/ssb/tf-message.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/ssb/tf-message.js b/apps/ssb/tf-message.js index 7b51da72..618585fc 100644 --- a/apps/ssb/tf-message.js +++ b/apps/ssb/tf-message.js @@ -31,7 +31,9 @@ class TfMessageElement extends LitElement { } show_reply() { - let event = new CustomEvent('tf-draft', {bubbles: true, composed: true, detail: {id: this.message?.id, draft: ''}}); + let event = new CustomEvent('tf-draft', {bubbles: true, composed: true, detail: {id: this.message?.id, draft: { + encrypt_to: this.message?.decrypted?.recps, + }}}); this.dispatchEvent(event); }