| mx_set_state | R Documentation |
Generic state setter, e.g. to mark a room encrypted by putting an
m.room.encryption event.
mx_set_state(session, room_id, event_type, content, state_key = "")
session |
An "mx_session" object. |
room_id |
Character. The room ID. |
event_type |
Character. State event type, e.g.
|
content |
List. The state content, sent as-is. |
state_key |
Character. State key (default empty string). |
The event ID of the state event.
## Not run:
mx_set_state(s, "!abc:example", "m.room.encryption",
list(algorithm = "m.megolm.v1.aes-sha2"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.