mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
Expose other objects in the builder to create a room
This commit is contained in:
parent
e8f28d7ce4
commit
d8a0a1d38e
2 changed files with 7 additions and 4 deletions
|
@ -17,6 +17,7 @@
|
|||
package im.vector.matrix.android.api.session.room.model.create
|
||||
|
||||
import im.vector.matrix.android.api.session.identity.ThreePid
|
||||
import im.vector.matrix.android.api.session.room.model.PowerLevelsContent
|
||||
import im.vector.matrix.android.api.session.room.model.RoomDirectoryVisibility
|
||||
import im.vector.matrix.android.api.session.room.model.RoomHistoryVisibility
|
||||
import im.vector.matrix.android.internal.crypto.MXCRYPTO_ALGORITHM_MEGOLM
|
||||
|
@ -47,6 +48,10 @@ class CreateRoomParamsBuilder {
|
|||
|
||||
var isDirect: Boolean? = null
|
||||
|
||||
var creationContent: Any? = null
|
||||
|
||||
var powerLevelContentOverride: PowerLevelsContent? = null
|
||||
|
||||
/**
|
||||
* Mark as a direct message room.
|
||||
*/
|
||||
|
|
|
@ -77,13 +77,11 @@ internal class CreateRoomParamsInternalBuilder @Inject constructor(
|
|||
topic = builder.topic,
|
||||
invitedUserIds = builder.invitedUserIds,
|
||||
invite3pids = invite3pids,
|
||||
// TODO Support this
|
||||
creationContent = null,
|
||||
creationContent = builder.creationContent,
|
||||
initialStates = initialStates,
|
||||
preset = builder.preset,
|
||||
isDirect = builder.isDirect,
|
||||
// TODO Support this
|
||||
powerLevelContentOverride = null
|
||||
powerLevelContentOverride = builder.powerLevelContentOverride
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue