RoomHistoryVisibility

@JsonClass(generateAdapter = false)
enum RoomHistoryVisibility : Enum<RoomHistoryVisibility>

Ref: https://matrix.org/docs/spec/client_server/latest#room-history-visibility

Entries

Link copied to clipboard
@Json(name = "world_readable")
WORLD_READABLE

All events while this is the m.room.history_visibility value may be shared by any participating homeserver with anyone, regardless of whether they have ever joined the room.

Link copied to clipboard
@Json(name = "shared")
SHARED

Previous events are always accessible to newly joined members. All events in the room are accessible, even those sent when the member was not a part of the room.

Link copied to clipboard
@Json(name = "invited")
INVITED

Events are accessible to newly joined members from the point they were invited onwards. Events stop being accessible when the member's state changes to something other than invite or join.

Link copied to clipboard
@Json(name = "joined")
JOINED

Events are accessible to newly joined members from the point they joined the room onwards. Events stop being accessible when the member's state changes to something other than join.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard