Types

Link copied to clipboard

When the back button is pressed.

Link copied to clipboard
data class BanUser(val user: User, val reason: String? = null, val timeout: Int? = null) : MessageListViewModel.Event

When the user bans another user.

Link copied to clipboard
data class BlockUser(val userId: String) : MessageListViewModel.Event

Block a user.

Link copied to clipboard

When the newest loaded message in the list has been reached and there's still newer messages to be loaded.

Link copied to clipboard
data class DeleteMessage(val message: Message, val hard: Boolean = false) : MessageListViewModel.Event

When the user deletes a message.

Link copied to clipboard
data class DownloadAttachment(val downloadAttachmentCall: () -> Call<Unit>) : MessageListViewModel.Event

When the user downloads an attachment.

Link copied to clipboard

When the oldest loaded message in the list has been reached.

Link copied to clipboard
data class FlagMessage(val message: Message, val reason: String?, val customData: Map<String, String>, val resultHandler: (Result<Flag>) -> Unit = { }) : MessageListViewModel.Event

When the user flags a message.

Link copied to clipboard
data class FlagUser(val userId: String, val reason: String? = null, val customData: Map<String, String> = emptyMap()) : MessageListViewModel.Event

Event for flagging a user.

Link copied to clipboard

When the user selects a Giphy message. e.g. send, shuffle or cancel.

Link copied to clipboard
data class HideUnreadLabel(val navigateToFirstUnreadMessage: Boolean) : MessageListViewModel.Event

When the Unread Label Button should be hidden.

Link copied to clipboard

When the newest message in the channel has been read.

Link copied to clipboard

When the user marks a message as unread.

Link copied to clipboard
data class MessageReaction(val message: Message, val reactionType: String) : MessageListViewModel.Event

When the user leaves a reaction to a message.

Link copied to clipboard
data class MuteUser(val user: User) : MessageListViewModel.Event

When the user mutes a user.

Link copied to clipboard
data class OpenThread(val message: Message) : MessageListViewModel.Event

When the user

Link copied to clipboard
data class PinMessage(val message: Message) : MessageListViewModel.Event

When the user pins a message.

Link copied to clipboard

When the user closes a poll.

Link copied to clipboard
data class PollOptionUpdated(val message: Message, val poll: Poll, val option: Option) : MessageListViewModel.Event

When the user updates a poll option.

Link copied to clipboard
data class RemoveAttachment(val messageId: String, val attachment: Attachment) : MessageListViewModel.Event

When the user removes an attachment from a message that was previously sent.

Link copied to clipboard

When the user removes the shadow ban from another user.

Link copied to clipboard
data class ReplyAttachment(val cid: String, val repliedMessageId: String) : MessageListViewModel.Event

When the user is replying to a single attachment. Usually triggered when replying from gallery.

Link copied to clipboard
data class ReplyMessage(val cid: String, val repliedMessage: Message) : MessageListViewModel.Event

When the user replies to a message.

Link copied to clipboard

Retry sending a message that has failed to send.

Link copied to clipboard
data class ShadowBanUser(val user: User, val reason: String? = null, val timeout: Int? = null) : MessageListViewModel.Event

When the user shadow bans another user.

Link copied to clipboard
data class ShowMessage(val messageId: String, val parentMessageId: String?) : MessageListViewModel.Event

When we need to display a particular message to the user. Usually triggered by clicking on pinned messages and replied messages.

Link copied to clipboard
data class ThreadModeEntered(val parentMessage: Message) : MessageListViewModel.Event

When the users enters thread mode.

Link copied to clipboard
data class UnbanUser(val user: User) : MessageListViewModel.Event

When the user unbans another user.

Link copied to clipboard
data class UnflagUser(val userId: String) : MessageListViewModel.Event

Event for flagging a user.

Link copied to clipboard

When the user unmutes a user.

Link copied to clipboard

When the user unpins a message.