/ SDKs / iOS
SDKs
Chat SDKs iOS v4
Chat SDKs iOS
Chat SDKs
iOS
Version 4

Cancel a scheduled message

Copy link

Use the cancelScheduledMessage() method to cancel a message that a user has scheduled to send at a later time.

// Cancel a scheduled message.
groupChannel.cancelScheduledMessage(scheduledMessageId: SCHEDULED_MESSAGE_ID) { message, error in
    guard error == nil else {
        return // Handle error.
    }
}