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
|
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.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.RoomDirectoryVisibility
|
||||||
import im.vector.matrix.android.api.session.room.model.RoomHistoryVisibility
|
import im.vector.matrix.android.api.session.room.model.RoomHistoryVisibility
|
||||||
import im.vector.matrix.android.internal.crypto.MXCRYPTO_ALGORITHM_MEGOLM
|
import im.vector.matrix.android.internal.crypto.MXCRYPTO_ALGORITHM_MEGOLM
|
||||||
|
@ -47,6 +48,10 @@ class CreateRoomParamsBuilder {
|
||||||
|
|
||||||
var isDirect: Boolean? = null
|
var isDirect: Boolean? = null
|
||||||
|
|
||||||
|
var creationContent: Any? = null
|
||||||
|
|
||||||
|
var powerLevelContentOverride: PowerLevelsContent? = null
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mark as a direct message room.
|
* Mark as a direct message room.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -77,13 +77,11 @@ internal class CreateRoomParamsInternalBuilder @Inject constructor(
|
||||||
topic = builder.topic,
|
topic = builder.topic,
|
||||||
invitedUserIds = builder.invitedUserIds,
|
invitedUserIds = builder.invitedUserIds,
|
||||||
invite3pids = invite3pids,
|
invite3pids = invite3pids,
|
||||||
// TODO Support this
|
creationContent = builder.creationContent,
|
||||||
creationContent = null,
|
|
||||||
initialStates = initialStates,
|
initialStates = initialStates,
|
||||||
preset = builder.preset,
|
preset = builder.preset,
|
||||||
isDirect = builder.isDirect,
|
isDirect = builder.isDirect,
|
||||||
// TODO Support this
|
powerLevelContentOverride = builder.powerLevelContentOverride
|
||||||
powerLevelContentOverride = null
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue