Reason

@Immutable
abstract class Reason

The reason the server rejects scheduling, editing or rescheduling a message. More reasons can be added in a minor version, so a when on it needs an else branch.

Inheritors

Types

Link copied to clipboard

The date is further away than the app allows.

Link copied to clipboard

The new date of an edited message is in the past.

Link copied to clipboard

The current user has as many pending scheduled messages in the channel as the app allows.

Link copied to clipboard

The current user has as many pending scheduled messages as the app allows.

Link copied to clipboard

The scheduled message was deleted, for example on another device.

Link copied to clipboard
Link copied to clipboard

The ID of the message belongs to a scheduled message of another user or channel.

Link copied to clipboard

A failed scheduled message can't be edited or sent now.

Link copied to clipboard

Scheduled messages are disabled for the app.

Link copied to clipboard

The server is sending the message, or will try again shortly.

Properties

Link copied to clipboard
abstract val value: String

The name of the reason, as the server gives it.