Package-level declarations
Inherited properties
Retrieves the last not deleted Message of the Channel, calculated as the messages with the most recent Message.createdAt or Message.createdLocallyAt.
Functions
Merges two collections of reactions by their Reaction.type.
Inherited functions
Adds member to the Channel.members and aligns Channel.memberCount.
Sets Channel.membership to member if currentUserId equals to member.getUserId().
Transforms the given Collection of Channels by applying the given AnyChannelPaginationRequest.
Enriches the wrapped Message from the ChatEvent with the Channel ID.
Checks if the given Message has pending attachments. A pending attachment is an attachment that is either in Attachment.UploadState.InProgress or Attachment.UploadState.Idle.
Marks the given thread as read by the given user.
Marks the given thread as unread by the given user.
Fills Message.mentionedUsersIds based on Message.text and Channel.members.
Processes the AnswerCastedEvent and updates the poll with the new answer.
Processes the PollClosedEvent and updates the poll by marking it as closed.
Processes the PollUpdatedEvent and updates the poll with the new data.
Processes the VoteRemovedEvent and updates the poll by removing the vote.
Processes the VoteCastedEvent and updates the poll with the new vote.
Processes the VoteChangedEvent and updates the poll with the new vote.
Removes member from the Channel.members and aligns Channel.memberCount.
Sets Channel.membership to null if currentUserId equals to membership.user.id.
Updates collection of reactions with more recent data of users.
Updates Channel member.
Updates Member.banned property inside the Channel.members.
Sets Channel.membership to member if member.user.id equals to Channel.membership.user.id.
Sets Channel.membership.banned to banned if memberUserId equals to Channel.membership.user.id.
Updates the parent message of a Thread.
Updates the given Thread with the new message (parent or reply).
Updates the Channel with a new ChannelUserRead. If an existing read for the user already exists, it will be replaced with the new one. If not, the new read will be added to the list of reads.
Updates the reaction's sync status based on result.
Updates a message with more recent data of users. It updates author user, latestReactions, replyTo message, mentionedUsers, threadParticipants and pinnedBy user of this instance.
Updates collection of channels with more recent data of users.
Updates collection of members with more recent data of users.
Updates collection of messages with more recent data of users.
Updates a collection of users by more fresh value of users.
Inserts a new reply (or updates and existing one) in a Thread.
Returns all users including watchers of a channel that are associated with it.
Retrieves all Users involved in the message. Includes the author, reaction authors, original message author (if the message is reply), mentioned users, thread participants, pinned by user, and poll voters.
Checks if the message was created after the given date.
Checks if the message was created after or at the given date.
Checks if the message was created before the given date.
Checks if the message was created before or at the given date.