Chat / iOS
Chat iOS v4
Chat iOS
Chat
iOS
Home
/
Chat
/
iOS
/
Message
This is the new Docs for Chat SDK v4 for iOS. To see the previous Docs, click here.

Cancel a scheduled message

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.
    }
}