RepositoryFacade
Functions
Caches in memory data from DB.
Deletes all messages from a given user in a given channel.
Deletes a Channel by the cid.
Deletes a Message from a Channel.messages.
Deletes all messages from a channel.
Deletes channel messages before hideMessagesBefore and removes channel from the cache.
Deletes all threads from a channel.
Delete a draft message.
Deletes the draft message of a channel, or of a thread when parentId is not null. Used when the draft is only identified by the channel/thread it belongs to, as happens with the draft.deleted event.
Deletes the list of Message objects.
Deletes a Poll by its ID.
Deletes a reaction.
Evict a Channel from the repository.
Evicts a message from the repository.
Evict messages from the repository.
Inserts a Channel
Writes ChannelConfig
Writes many ChannelConfig
Inserts many Channels.
Inserts the current user of the SDK.
Insert a draft message.
Inserts a messages.
Inserts many messages.
Inserts a query channels.
Inserts a reaction.
Inserts a sync state.
Inserts the order in which local threads should be displayed.
Inserts the given list of Thread.
Inserts a users.
Insert many users.
Moves the messages in SyncStatus.IN_PROGRESS that were deleted before deletedBefore, or deleted for the current user, to SyncStatus.COMPLETED.
Returns flow of latest updated users.
Selects all messages from a given user in a given channel.
Selects all channels' cids.
Selects all messages from a given user.
Selects a query spec by its identifier.
Select channel by full channel ID Channel.cid
Read which channel cids need sync.
Read the cids of the channels with the given syncStatus.
Select the ChannelConfig for a channel type.
Select channels by full channel IDs Channel.cid
Read which channels need sync.
Selects a draft message by its parent message ID.
Selects all draft messages.
Selects a draft message by its channel ID.
Returns all messages for cid that are local-only: syncStatus is one of SYNC_NEEDED, IN_PROGRESS, AWAITING_ATTACHMENTS, FAILED_PERMANENTLY, or type is "ephemeral" or "error", including just-sent messages not yet written to storage. Used by the preservation mechanism before a server response replaces the active message window.
Reads the member list of a channel.
Reads the message with passed ID.
Selects all message of a SyncStatus
Selects all message ids of a SyncStatus
Selects messages by IDs.
Select messages for a channel in a desired page.
Select messages for a thread in a desired page.
Selects all messages with a poll with the passed ID.
Selects reaction with specified id.
Selects all reaction ids with specific SyncStatus.
Selects all reactions with specific SyncStatus
Selects a sync state.
Retrieves the order in which local threads should be displayed.
Selects a user by id.
Selects all current user reactions of a message.
Selects the reaction of given type to the message if exists.
Sets the Channel.deleteAt for a channel.
Sets the Channel.hidden for a channel.
Updates a Message from a Channel.messages.
Replaces the Message.member snapshot on every message a given user authored in a given channel.
Updates the last message for a Channel
Updates the members of a Channel
Sets the SyncStatus of the stored message with messageId, leaving the rest of it as it is.
Updates the Reaction.deletedAt for reactions of a message.
Upsert a Message in the corresponding thread (if such exists).
Upsert a list of Messages in the corresponding thread (if such exists).