-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Ibf350b03ff01b9ba31898d25cc7e4dab33bcde07
- Loading branch information
1 parent
213bc16
commit 2b667ac
Showing
8 changed files
with
51 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
.../api/src/main/kotlin/io/element/android/libraries/matrix/api/room/MatrixSpaceChildInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.element.android.libraries.matrix.api.room | ||
|
||
import androidx.compose.runtime.Immutable | ||
|
||
@Immutable | ||
data class MatrixSpaceChildInfo( | ||
val roomId: String, | ||
val order: String?, | ||
val suggested: Boolean, | ||
) |
14 changes: 14 additions & 0 deletions
14
...c/main/kotlin/io/element/android/libraries/matrix/impl/room/MatrixSpaceChildInfoMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.element.android.libraries.matrix.impl.room | ||
|
||
import io.element.android.libraries.matrix.api.room.MatrixSpaceChildInfo | ||
import org.matrix.rustcomponents.sdk.SpaceChildInfo | ||
|
||
object MatrixSpaceChildInfoMapper { | ||
fun map(spaceChildInfo: SpaceChildInfo): MatrixSpaceChildInfo = spaceChildInfo.let { | ||
return MatrixSpaceChildInfo( | ||
roomId = it.roomId, | ||
order = it.order, | ||
suggested = it.suggested, | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters