remove reason field

And other details.

Signed-off-by: Timo K <toger5@hotmail.de>
toger5/matrixRTC-call-decline
Timo K 3 months ago
parent a4905590a4
commit 67687dc381

@ -43,14 +43,9 @@ needs to be achievable with the proposed solution.
### Proposal (Changes) ### Proposal (Changes)
This MSC proposes the `m.rtc.decline` event type, with a standard `m.reference` This MSC proposes the `m.rtc.decline` event type, with a standard `m.reference`
relation and a `reason` field. relation.
- relation: `"m.relates_to": {"rel_type": "m.reference", "event_id": "$call_notification_event_id"}` - relation: `"m.relates_to": {"rel_type": "m.reference", "event_id": "$call_notification_event_id"}`
- reason:
```json
"reason"?: "decline description"
```
The `m.relates_to` field allows referencing the original `m.rtc.notification` event. The `m.relates_to` field allows referencing the original `m.rtc.notification` event.
The optional reason can provide a message to the user receiving the decline. The optional reason can provide a message to the user receiving the decline.
@ -78,7 +73,6 @@ Unencrypted (stable) example:
"rel_type": "m.reference", "rel_type": "m.reference",
"event_id": "$call_notification_event_id" "event_id": "$call_notification_event_id"
}, },
"reason": "Busy"
} }
} }
``` ```
@ -87,11 +81,9 @@ Client handling guidance:
- For 1:1 rings, on receipt of a decline, stop ringing and show a declined state. - For 1:1 rings, on receipt of a decline, stop ringing and show a declined state.
- For group rings, on receipt of a decline from a participant, update that - For group rings, on receipt of a decline from a participant, update that
participants state. The ring should continue until at least one participant participants state. The clients are free if and in which way they want to inform
accepts or all have declined/timeout. the user about a decline.
- Ignore declines which do not relate to a known `m.rtc.notification` event, - Ignore declines which do not relate to a known `m.rtc.notification` event.
or where the sender is not a targeted/mentioned recipient of that
notification.
- If the user has since joined the MatrixRTC session (per `m.rtc.member`), - If the user has since joined the MatrixRTC session (per `m.rtc.member`),
declines for the corresponding notification can be ignored. declines for the corresponding notification can be ignored.
- Decline events SHOULD NOT mention users and SHOULD NOT trigger push - Decline events SHOULD NOT mention users and SHOULD NOT trigger push
@ -133,6 +125,12 @@ This custom event will be sent as a reaction to the initial notify event:
- Cons ❌ - Cons ❌
- There would be no clear separation of concerns, and the semantics would be muddled. - There would be no clear separation of concerns, and the semantics would be muddled.
#### Additional fields
A `reason` field was considered but due to the lack of an immediate product feature
it was not justifiable to have it in this MSC. Future MSC's with a dedicated usecase
for such a feature can be created.
## Security considerations ## Security considerations
Relations are unencrypted and might make it possible to guess a decline because the Relations are unencrypted and might make it possible to guess a decline because the

@ -43,14 +43,9 @@ needs to be achievable with the proposed solution.
### Proposal (Changes) ### Proposal (Changes)
This MSC proposes the `m.rtc.decline` event type, with a standard `m.reference` This MSC proposes the `m.rtc.decline` event type, with a standard `m.reference`
relation and a `reason` field. relation.
- relation: `"m.relates_to": {"rel_type": "m.reference", "event_id": "$call_notification_event_id"}` - relation: `"m.relates_to": {"rel_type": "m.reference", "event_id": "$call_notification_event_id"}`
- reason:
```json
"reason"?: "decline description"
```
The `m.relates_to` field allows referencing the original `m.rtc.notification` event. The `m.relates_to` field allows referencing the original `m.rtc.notification` event.
The optional reason can provide a message to the user receiving the decline. The optional reason can provide a message to the user receiving the decline.
@ -78,7 +73,6 @@ Unencrypted (stable) example:
"rel_type": "m.reference", "rel_type": "m.reference",
"event_id": "$call_notification_event_id" "event_id": "$call_notification_event_id"
}, },
"reason": "Busy"
} }
} }
``` ```
@ -87,11 +81,9 @@ Client handling guidance:
- For 1:1 rings, on receipt of a decline, stop ringing and show a declined state. - For 1:1 rings, on receipt of a decline, stop ringing and show a declined state.
- For group rings, on receipt of a decline from a participant, update that - For group rings, on receipt of a decline from a participant, update that
participants state. The ring should continue until at least one participant participants state. The clients are free if and in which way they want to inform
accepts or all have declined/timeout. the user about a decline.
- Ignore declines which do not relate to a known `m.rtc.notification` event, - Ignore declines which do not relate to a known `m.rtc.notification` event.
or where the sender is not a targeted/mentioned recipient of that
notification.
- If the user has since joined the MatrixRTC session (per `m.rtc.member`), - If the user has since joined the MatrixRTC session (per `m.rtc.member`),
declines for the corresponding notification can be ignored. declines for the corresponding notification can be ignored.
- Decline events SHOULD NOT mention users and SHOULD NOT trigger push - Decline events SHOULD NOT mention users and SHOULD NOT trigger push
@ -133,6 +125,12 @@ This custom event will be sent as a reaction to the initial notify event:
- Cons ❌ - Cons ❌
- There would be no clear separation of concerns, and the semantics would be muddled. - There would be no clear separation of concerns, and the semantics would be muddled.
#### Additional fields
A `reason` field was considered but due to the lack of an immediate product feature
it was not justifiable to have it in this MSC. Future MSC's with a dedicated usecase
for such a feature can be created.
## Security considerations ## Security considerations
Relations are unencrypted and might make it possible to guess a decline because the Relations are unencrypted and might make it possible to guess a decline because the

Loading…
Cancel
Save