mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Avoid test if previous result is null
This commit is contained in:
parent
e6c3f7c77b
commit
6f6c3184dd
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ internal class DefaultCreateRoomTask @Inject constructor(
|
|||
override suspend fun execute(params: CreateRoomParams): String {
|
||||
val createRoomParams = params
|
||||
.takeIf { it.enableEncryptionIfInvitedUsersSupportIt }
|
||||
.takeIf { crossSigningService.isCrossSigningEnabled() }
|
||||
?.takeIf { crossSigningService.isCrossSigningEnabled() }
|
||||
?.takeIf { it.invite3pids.isNullOrEmpty() }
|
||||
?.invitedUserIds
|
||||
?.let { userIds ->
|
||||
|
|
Loading…
Add table
Reference in a new issue