forked from cory/tildefriends
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:
parent
e0110203e7
commit
9751facfb4
@ -199,7 +199,8 @@ class TfComposeElement extends LitElement {
|
|||||||
let to = new Set(draft.encrypt_to);
|
let to = new Set(draft.encrypt_to);
|
||||||
to.add(this.whoami);
|
to.add(this.whoami);
|
||||||
to = [...to];
|
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));
|
message = await tfrpc.rpc.encrypt(this.whoami, to, JSON.stringify(message));
|
||||||
console.log('encrypted as', message);
|
console.log('encrypted as', message);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user