updateContact

js
suspend fun updateContact(address: <ERROR CLASS>, name: String? = null, color: String? = null, inboxPosition: Int? = null)

Update information about a local contact. Null properties will be left alone.

Parameters

address

Address of the local contact to update.

name

The new name of the contact

color

The new color for the contact.

inboxPosition

The new inbox position for the contact.

Throws

RequestFailedException

if signald sends an error response or the incoming message is invalid

SignaldException

if the request to the socket fails

synchronousClient
fun updateContact(address: JsonAddress, name: String? = null, color: String? = null, inboxPosition: Int? = null)

Update information about a local contact. Null properties will be left alone.

Parameters

address

Address of the local contact to update.

name

The new name of the contact

color

The new color for the contact.

inboxPosition

The new inbox position for the contact.

Throws

org.inthewaves.kotlinsignald.clientprotocol.RequestFailedException

if signald sends an error response or the incoming message is invalid

org.inthewaves.kotlinsignald.clientprotocol.SignaldException

if the request to the socket fails