Add recps field to encrypted messages.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4441 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-09-02 13:25:31 +00:00
parent e0110203e7
commit 9751facfb4

View File

@ -199,7 +199,8 @@ class TfComposeElement extends LitElement {
let to = new Set(draft.encrypt_to);
to.add(this.whoami);
to = [...to];
console.log('encrypting to', to);
message.recps = to;
console.log('message is now', message);
message = await tfrpc.rpc.encrypt(this.whoami, to, JSON.stringify(message));
console.log('encrypted as', message);
}