deleteTaskFromMessage

abstract suspend fun deleteTaskFromMessage(messageId: String): RainbowResult<Unit>

Deletes the Task linked to a specific instant message.

This function removes the task associated with the given messageId. After a successful deletion, the tasks property will be updated automatically.

Make sure the messageId corresponds to an existing task, otherwise the operation will fail.

Return

A RainbowResult with Unit on success, or a com.ale.infra.rest.listeners.Failure if the deletion fails.

Parameters

messageId

The unique ID of the IMMessage linked to the task.