Expose other objects in the builder to create a room
This commit is contained in:
parent
e8f28d7ce4
commit
d8a0a1d38e
|
@ -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 New Issue