TypingEvent

@Immutable
data class TypingEvent(val channelId: String, val users: List<User>, val typingUsers: List<TypingUser> = users.map(::TypingUser))

Model representing a typing event.

Parameters

channelId

The ID of the channel where the typing event occurred.

users

The users who are currently typing in the channel.

typingUsers

The users who are currently typing in the channel, with their channel membership. Defaults to users without membership, so both lists describe the same people however the event is constructed. The default is evaluated at construction, so copy(users = ...) keeps the receiver's typingUsers and the two can then disagree.

Constructors

Link copied to clipboard
constructor(channelId: String, users: List<User>, typingUsers: List<TypingUser> = users.map(::TypingUser))

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard