Skip to content

Commit d8a30f3

Browse files
committed
Move MembershipChange to its own file.
1 parent 4c97a63 commit d8a30f3

File tree

2 files changed

+37
-20
lines changed

2 files changed

+37
-20
lines changed

libraries/matrix/api/src/main/kotlin/io/element/android/libraries/matrix/api/timeline/item/event/EventContent.kt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -99,26 +99,6 @@ data class FormattedBody(
9999
val body: String
100100
)
101101

102-
enum class MembershipChange {
103-
NONE,
104-
ERROR,
105-
JOINED,
106-
LEFT,
107-
BANNED,
108-
UNBANNED,
109-
KICKED,
110-
INVITED,
111-
KICKED_AND_BANNED,
112-
INVITATION_ACCEPTED,
113-
INVITATION_REJECTED,
114-
INVITATION_REVOKED,
115-
KNOCKED,
116-
KNOCK_ACCEPTED,
117-
KNOCK_RETRACTED,
118-
KNOCK_DENIED,
119-
NOT_IMPLEMENTED;
120-
}
121-
122102
sealed interface OtherState {
123103
data object PolicyRuleRoom : OtherState
124104
data object PolicyRuleServer : OtherState
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) 2023 New Vector Ltd
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package io.element.android.libraries.matrix.api.timeline.item.event
18+
19+
enum class MembershipChange {
20+
NONE,
21+
ERROR,
22+
JOINED,
23+
LEFT,
24+
BANNED,
25+
UNBANNED,
26+
KICKED,
27+
INVITED,
28+
KICKED_AND_BANNED,
29+
INVITATION_ACCEPTED,
30+
INVITATION_REJECTED,
31+
INVITATION_REVOKED,
32+
KNOCKED,
33+
KNOCK_ACCEPTED,
34+
KNOCK_RETRACTED,
35+
KNOCK_DENIED,
36+
NOT_IMPLEMENTED;
37+
}

0 commit comments

Comments
 (0)