mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
Split long lines and improve readability.
This commit is contained in:
parent
bfc89242fe
commit
8f69c5e0bc
1 changed files with 7 additions and 3 deletions
|
@ -198,10 +198,14 @@ internal class DefaultSpaceService @Inject constructor(
|
|||
.orEmpty()
|
||||
}
|
||||
|
||||
private fun SpaceChildSummaryEvent.isChildOf(space: SpaceChildSummaryResponse) = stateKey == space.roomId && type == EventType.STATE_SPACE_CHILD
|
||||
private fun SpaceChildSummaryEvent.isChildOf(space: SpaceChildSummaryResponse): Boolean {
|
||||
return stateKey == space.roomId && type == EventType.STATE_SPACE_CHILD
|
||||
}
|
||||
|
||||
private fun SpaceChildSummaryEvent.toSpaceChildInfo(spaceId: String, summary: SpaceChildSummaryResponse) = content.toModel<SpaceChildContent>()?.let { content ->
|
||||
createSpaceChildInfo(spaceId, summary, content)
|
||||
private fun SpaceChildSummaryEvent.toSpaceChildInfo(spaceId: String, summary: SpaceChildSummaryResponse): SpaceChildInfo? {
|
||||
return content.toModel<SpaceChildContent>()?.let { content ->
|
||||
createSpaceChildInfo(spaceId, summary, content)
|
||||
}
|
||||
}
|
||||
|
||||
private fun createSpaceChildInfo(
|
||||
|
|
Loading…
Add table
Reference in a new issue