Skip to content

Commit 267eead

Browse files
committed
apply changes from review
1 parent 7b4ea94 commit 267eead

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

event-schemas/schema/m.room_key.withheld

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,17 @@ properties:
5757
sender.
5858
code:
5959
type: string
60+
enum:
61+
- m.blacklisted
62+
- m.unverified
63+
- m.unauthorised
64+
- m.unavailable
65+
- m.no_olm
6066
description: |-
61-
A machine-readable code for why the key was not sent.
67+
A machine-readable code for why the key was not sent. Codes beginning
68+
with `m.` are reserved for codes defined in the Matrix
69+
specification. Custom codes must use the Java package naming
70+
convention.
6271
reason:
6372
type: string
6473
description: |-

specification/modules/end_to_end_encryption.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,10 +1341,11 @@ Example response:
13411341
Reporting that decryption keys are withheld
13421342
-------------------------------------------
13431343

1344-
When sending an encrypted event to a room, a client can signal to other devices
1345-
in that room that it is not sending them the keys needed to decrypt the event.
1346-
In this way, the receiving client can indicate to the user why it cannot
1347-
decrypt the event, rather than just showing a generic error message.
1344+
When sending an encrypted event to a room, a client can optionally signal to
1345+
other devices in that room that it is not sending them the keys needed to
1346+
decrypt the event. In this way, the receiving client can indicate to the user
1347+
why it cannot decrypt the event, rather than just showing a generic error
1348+
message.
13481349

13491350
In the same way, when one device requests keys from another using `Key
13501351
requests`_, the device from which the key is being requested may want to tell

0 commit comments

Comments
 (0)