Skip to content

Commit

Permalink
Add MSC3419 support
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Dec 29, 2021
1 parent cbb45bf commit c686bb8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion content/client-server-api/modules/guest_access.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ for sending events:

- [POST /rooms/:room\_id/join](#post_matrixclientv3roomsroomidjoin)
- [POST /rooms/:room\_id/leave](#post_matrixclientv3roomsroomidleave)
- [PUT /rooms/:room\_id/send/m.room.message/:txn\_id](#put_matrixclientv3roomsroomidsendeventtypetxnid)
- [PUT /rooms/:room\_id/send/:event\_type/:txn\_id](#put_matrixclientv3roomsroomidsendeventtypetxnid)

- {{% changed-in v="1.2" %}} Guests can now send *any* event
type rather than just `m.room.message` events.

- {{% added-in v="1.2" %}} [PUT /rooms/:room\_id/state/:event\_type/:state\_key](#put_matrixclientv3roomsroomidstateeventtypestatekey)
- [PUT /sendToDevice/{eventType}/{txnId}](#put_matrixclientv3sendtodeviceeventtypetxnid)

The following API endpoints are allowed to be accessed by guest accounts
Expand Down Expand Up @@ -90,3 +95,6 @@ properly enforce the permissions outlined in this section.

Homeservers may want to enable protections such as captchas for guest
registration to prevent spam, denial of service, and similar attacks.

Homeservers may want to put stricter rate limits on guest accounts,
particularly for sending state events.
8 changes: 8 additions & 0 deletions layouts/shortcodes/changed-in.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ $ver := .Params.v }}
{{ $this := .Params.this }}

{{ if $this }}
<span>**[Changed in this version]**</span>
{{ else }}
<span>**[Changed in `v{{ $ver }}`]**</span>
{{ end }} {{/* Do not leave an empty line at the end of this file otherwise the inline behaviour breaks. */}}

0 comments on commit c686bb8

Please sign in to comment.