plugin OXPS, XEP-0060: indicate which items were e2ee:
the new `encryption` key is added to `getItems` metadata if items were e2ee, it contains a map from item ID to encryption metadata. rel 380
This commit is contained in:
parent
48d1f2fc21
commit
7b9e785c13
1 changed files with 4 additions and 0 deletions
|
|
@ -736,6 +736,7 @@ class PubsubEncryption:
|
|||
decrypted_elt = xml_tools.parse(decrypted)
|
||||
item.children.clear()
|
||||
item.addChild(decrypted_elt)
|
||||
extra.setdefault("encrypted", {})[item["id"]] = {"type": NS_OXPS}
|
||||
|
||||
async def _message_received_trigger(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue