Expose other objects in the builder to create a room

This commit is contained in:
Benoit Marty 2020-07-10 11:55:11 +02:00
parent e8f28d7ce4
commit d8a0a1d38e
2 changed files with 7 additions and 4 deletions

View File

@ -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.
*/

View File

@ -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
)
}