mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-05 21:43:40 +01:00
Avoid test if previous result is null
This commit is contained in:
parent
e6c3f7c77b
commit
6f6c3184dd
@ -60,7 +60,7 @@ internal class DefaultCreateRoomTask @Inject constructor(
|
|||||||
override suspend fun execute(params: CreateRoomParams): String {
|
override suspend fun execute(params: CreateRoomParams): String {
|
||||||
val createRoomParams = params
|
val createRoomParams = params
|
||||||
.takeIf { it.enableEncryptionIfInvitedUsersSupportIt }
|
.takeIf { it.enableEncryptionIfInvitedUsersSupportIt }
|
||||||
.takeIf { crossSigningService.isCrossSigningEnabled() }
|
?.takeIf { crossSigningService.isCrossSigningEnabled() }
|
||||||
?.takeIf { it.invite3pids.isNullOrEmpty() }
|
?.takeIf { it.invite3pids.isNullOrEmpty() }
|
||||||
?.invitedUserIds
|
?.invitedUserIds
|
||||||
?.let { userIds ->
|
?.let { userIds ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user