Package-level declarations

Properties

Link copied to clipboard
val NEVER: Date

Inherited properties

Link copied to clipboard

Functions

Link copied to clipboard
fun mergeReactions(recentReactions: Collection<Reaction>, cachedReactions: Collection<Reaction>): Collection<Reaction>

Merges two collections of reactions by their Reaction.type.

Inherited functions

Link copied to clipboard

Adds member to the Channel.members and aligns Channel.memberCount.

Link copied to clipboard
fun Channel.addMembership(currentUserId: String, member: Member): Channel

Sets Channel.membership to member if currentUserId equals to member.getUserId().

Link copied to clipboard
fun Message.addMyReaction(reaction: Reaction, enforceUnique: Boolean = false): Message
Link copied to clipboard
Link copied to clipboard
fun Reaction.enrichWithDataBeforeSending(currentUser: User, isOnline: Boolean, enforceUnique: Boolean): Reaction
Link copied to clipboard
fun Thread.markAsReadByUser(threadInfo: ThreadInfo, user: User, createdAt: Date): Thread

Marks the given thread as read by the given user.

Link copied to clipboard
fun Thread.markAsUnreadByUser(user: User, createdAt: Date): Thread

Marks the given thread as unread by the given user.

Link copied to clipboard
fun AnswerCastedEvent.processPoll(getOldPoll: (String) -> Poll?): Poll
fun PollClosedEvent.processPoll(getOldPoll: (String) -> Poll?): Poll
fun PollUpdatedEvent.processPoll(getOldPoll: (String) -> Poll?): Poll
fun VoteRemovedEvent.processPoll(getOldPoll: (String) -> Poll?): Poll
fun VoteCastedEvent.processPoll(currentUserId: String?, getOldPoll: (String) -> Poll?): Poll
fun VoteChangedEvent.processPoll(currentUserId: String?, getOldPoll: (String) -> Poll?): Poll
Link copied to clipboard
fun Channel.removeMember(memberUserId: String?): Channel

Removes member from the Channel.members and aligns Channel.memberCount.

Link copied to clipboard
fun Channel.removeMembership(currentUserId: String?): Channel

Sets Channel.membership to null if currentUserId equals to membership.user.id.

Link copied to clipboard
Link copied to clipboard
fun Message.shouldIncrementUnreadCount(currentUserId: String, lastMessageAtDate: Date?, isChannelMuted: Boolean): Boolean

Function that parses if the unread count should be increased or not.

Link copied to clipboard

Converts a pair of channelType and channelId into cid.

Link copied to clipboard

Updates collection of reactions with more recent data of users.

Link copied to clipboard
fun Channel.updateLastMessage(receivedEventDate: Date, message: Message, currentUserId: String): Channel
Link copied to clipboard

Updates Channel member.

Link copied to clipboard
fun Channel.updateMemberBanned(memberUserId: String, banned: Boolean, shadow: Boolean): Channel

Updates Member.banned property inside the Channel.members.

Link copied to clipboard

Sets Channel.membership to member if member.user.id equals to Channel.membership.user.id.

Link copied to clipboard
fun Channel.updateMembershipBanned(memberUserId: String, banned: Boolean): Channel

Sets Channel.membership.banned to banned if memberUserId equals to membership.user.id.

Link copied to clipboard

Updates the parent message of a Thread.

Link copied to clipboard

Updates the given Thread with the new message (parent or reply).

Link copied to clipboard
Link copied to clipboard
fun Reaction.updateSyncStatus(result: Result<*>): Reaction

Updates the reaction's sync status based on result.

Link copied to clipboard

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.

Link copied to clipboard

Inserts a new reply (or updates and existing one) in a Thread.

Link copied to clipboard

Returns all users including watchers of a channel that are associated with it.

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