deleteTaskFromMessage

abstract fun deleteTaskFromMessage(messageId: String, listener: RainbowListener<Unit, Unit>?)

Deletes a Task associated with a specific instant message.

This method removes the task that is linked to the provided messageId. Upon successful deletion, the provided listener will be notified. Additionally, the taskList will be updated automatically to reflect the removal of the associated task.

Parameters

messageId

The unique ID of the IMMessage bound to the task. This must be a valid message ID associated with an existing task.

listener

An optional callback of type RainbowListener that is invoked upon completion of the operation. If not required, set to null.