Split long lines and improve readability.
This commit is contained in:
parent
bfc89242fe
commit
8f69c5e0bc
@ -198,10 +198,14 @@ internal class DefaultSpaceService @Inject constructor(
|
|||||||
.orEmpty()
|
.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 ->
|
private fun SpaceChildSummaryEvent.toSpaceChildInfo(spaceId: String, summary: SpaceChildSummaryResponse): SpaceChildInfo? {
|
||||||
createSpaceChildInfo(spaceId, summary, content)
|
return content.toModel<SpaceChildContent>()?.let { content ->
|
||||||
|
createSpaceChildInfo(spaceId, summary, content)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun createSpaceChildInfo(
|
private fun createSpaceChildInfo(
|
||||||
|
Loading…
Reference in New Issue
Block a user