mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
do not send empty invite list when creating a room
This commit is contained in:
parent
b862e5ccbf
commit
966a959e41
1 changed files with 1 additions and 2 deletions
|
@ -96,7 +96,7 @@ internal class CreateRoomBodyBuilder @Inject constructor(
|
||||||
roomAliasName = params.roomAliasName,
|
roomAliasName = params.roomAliasName,
|
||||||
name = params.name,
|
name = params.name,
|
||||||
topic = params.topic,
|
topic = params.topic,
|
||||||
invitedUserIds = params.invitedUserIds.filter { it != userId },
|
invitedUserIds = params.invitedUserIds.filter { it != userId }.takeIf { it.isNotEmpty() },
|
||||||
invite3pids = invite3pids,
|
invite3pids = invite3pids,
|
||||||
creationContent = params.creationContent.takeIf { it.isNotEmpty() },
|
creationContent = params.creationContent.takeIf { it.isNotEmpty() },
|
||||||
initialStates = initialStates,
|
initialStates = initialStates,
|
||||||
|
@ -104,7 +104,6 @@ internal class CreateRoomBodyBuilder @Inject constructor(
|
||||||
isDirect = params.isDirect,
|
isDirect = params.isDirect,
|
||||||
powerLevelContentOverride = params.powerLevelContentOverride,
|
powerLevelContentOverride = params.powerLevelContentOverride,
|
||||||
roomVersion = params.roomVersion
|
roomVersion = params.roomVersion
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue