2828MAX_USERID_LENGTH = 255
2929
3030
31- class Membership ( object ) :
31+ class Membership :
3232
3333 """Represents the membership states of a user in a room."""
3434
@@ -40,22 +40,22 @@ class Membership(object):
4040 LIST = (INVITE , JOIN , KNOCK , LEAVE , BAN )
4141
4242
43- class PresenceState ( object ) :
43+ class PresenceState :
4444 """Represents the presence state of a user."""
4545
4646 OFFLINE = "offline"
4747 UNAVAILABLE = "unavailable"
4848 ONLINE = "online"
4949
5050
51- class JoinRules ( object ) :
51+ class JoinRules :
5252 PUBLIC = "public"
5353 KNOCK = "knock"
5454 INVITE = "invite"
5555 PRIVATE = "private"
5656
5757
58- class LoginType ( object ) :
58+ class LoginType :
5959 PASSWORD = "m.login.password"
6060 EMAIL_IDENTITY = "m.login.email.identity"
6161 MSISDN = "m.login.msisdn"
@@ -65,7 +65,7 @@ class LoginType(object):
6565 DUMMY = "m.login.dummy"
6666
6767
68- class EventTypes ( object ) :
68+ class EventTypes :
6969 Member = "m.room.member"
7070 Create = "m.room.create"
7171 Tombstone = "m.room.tombstone"
@@ -96,17 +96,17 @@ class EventTypes(object):
9696 Presence = "m.presence"
9797
9898
99- class RejectedReason ( object ) :
99+ class RejectedReason :
100100 AUTH_ERROR = "auth_error"
101101
102102
103- class RoomCreationPreset ( object ) :
103+ class RoomCreationPreset :
104104 PRIVATE_CHAT = "private_chat"
105105 PUBLIC_CHAT = "public_chat"
106106 TRUSTED_PRIVATE_CHAT = "trusted_private_chat"
107107
108108
109- class ThirdPartyEntityKind ( object ) :
109+ class ThirdPartyEntityKind :
110110 USER = "user"
111111 LOCATION = "location"
112112
@@ -115,7 +115,7 @@ class ThirdPartyEntityKind(object):
115115ServerNoticeLimitReached = "m.server_notice.usage_limit_reached"
116116
117117
118- class UserTypes ( object ) :
118+ class UserTypes :
119119 """Allows for user type specific behaviour. With the benefit of hindsight
120120 'admin' and 'guest' users should also be UserTypes. Normal users are type None
121121 """
@@ -125,7 +125,7 @@ class UserTypes(object):
125125 ALL_USER_TYPES = (SUPPORT , BOT )
126126
127127
128- class RelationTypes ( object ) :
128+ class RelationTypes :
129129 """The types of relations known to this server.
130130 """
131131
@@ -134,14 +134,14 @@ class RelationTypes(object):
134134 REFERENCE = "m.reference"
135135
136136
137- class LimitBlockingTypes ( object ) :
137+ class LimitBlockingTypes :
138138 """Reasons that a server may be blocked"""
139139
140140 MONTHLY_ACTIVE_USER = "monthly_active_user"
141141 HS_DISABLED = "hs_disabled"
142142
143143
144- class EventContentFields ( object ) :
144+ class EventContentFields :
145145 """Fields found in events' content, regardless of type."""
146146
147147 # Labels for the event, cf https://github.com/matrix-org/matrix-doc/pull/2326
@@ -152,6 +152,6 @@ class EventContentFields(object):
152152 SELF_DESTRUCT_AFTER = "org.matrix.self_destruct_after"
153153
154154
155- class RoomEncryptionAlgorithms ( object ) :
155+ class RoomEncryptionAlgorithms :
156156 MEGOLM_V1_AES_SHA2 = "m.megolm.v1.aes-sha2"
157157 DEFAULT = MEGOLM_V1_AES_SHA2
0 commit comments