diff --git a/docs/reference/matrix-glib/matrix-glib-sections.txt b/docs/reference/matrix-glib/matrix-glib-sections.txt index 085a1d8..269d579 100644 --- a/docs/reference/matrix-glib/matrix-glib-sections.txt +++ b/docs/reference/matrix-glib/matrix-glib-sections.txt @@ -85,6 +85,7 @@ MatrixPusherConditionKind MatrixEventDirection MatrixReceiptType MatrixAccountKind +MatrixRoomMembership MatrixFilterRules @@ -261,6 +262,8 @@ MATRIX_TYPE_RECEIPT_TYPE matrix_receipt_type_get_type MATRIX_TYPE_ACCOUNT_KIND matrix_account_kind_get_type +MATRIX_TYPE_ROOM_MEMBERSHIP +matrix_room_membership_get_type MATRIX_TYPE_FILTER_RULES matrix_filter_rules_get_type MATRIX_TYPE_ROOM_FILTER diff --git a/src/matrix-enums.vala b/src/matrix-enums.vala index bed3ad5..2b15a2e 100644 --- a/src/matrix-enums.vala +++ b/src/matrix-enums.vala @@ -143,6 +143,18 @@ namespace Matrix { SCALE; /// scale thumbnail to the requested size } + /** + * Room membership types. + */ + public enum RoomMembership { + UNKNOWN, /// the membership sent by the server is unknown to this SDK + INVITE, /// the user has been invited to join a room, but has not yet joined it. They may not participate in the room until they join + JOIN, /// the user has joined the room (possibly after accepting an invite), and may participate in it + LEAVE, /// the user was once joined to the room, but has since left (possibly by choice, or possibly by being kicked) + BAN, /// the user has been banned from the room, and is no longer allowed to join it until they are un-banned from the room (by having their membership state set to a value other than {{{BAN}}}) + KNOCK; /// this is a reserved word, which currently has no meaning + } + /** * Preset values for matrix_api_create_room() calls. */