updateThread

expect fun updateThread(threadId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, version: Long, force: Boolean = false, forceGenerateNewKey: Boolean = false, policies: ContainerPolicy? = null)

Updates an existing Thread.

Parameters

threadId

ID of the Thread to update

users

list of UserWithPubKey which indicates who will have access to the updated Thread

managers

list of UserWithPubKey which indicates who will have access (and management rights) to the updated Thread

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

version

current version of the updated Thread

force

force update (without checking version)

forceGenerateNewKey

force to regenerate a key for the Thread

policies

additional container access policies

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual fun updateThread(threadId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, version: Long, force: Boolean, forceGenerateNewKey: Boolean, policies: ContainerPolicy?)

Updates an existing Thread.

Parameters

threadId

ID of the Thread to update

users

list of UserWithPubKey which indicates who will have access to the updated Thread

managers

list of UserWithPubKey which indicates who will have access (and management rights) to the updated Thread

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

version

current version of the updated Thread

force

force update (without checking version)

forceGenerateNewKey

force to regenerate a key for the Thread

policies

additional container access policies

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual external fun updateThread(threadId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, version: Long, force: Boolean, forceGenerateNewKey: Boolean, policies: ContainerPolicy?)

Updates an existing Thread.

Parameters

threadId

ID of the Thread to update

users

list of UserWithPubKey which indicates who will have access to the updated Thread

managers

list of UserWithPubKey which indicates who will have access (and management rights) to the updated Thread

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

version

current version of the updated Thread

force

force update (without checking version)

forceGenerateNewKey

force to regenerate a key for the Thread

policies

additional container access policies

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception