RemoteBackupChangeLogDAOImpl

Constructors

Link copied to clipboard
constructor(queries: RemotebackupChangeLogQueries, readDispatcher: ReadDispatcher, writeDispatcher: WriteDispatcher)

Functions

Link copied to clipboard
open suspend override fun getPendingChanges(): List<ChangeLogEntry>

Get all pending changes ordered by timestamp.

Link copied to clipboard
open suspend override fun logConversationClear(conversationId: QualifiedIDEntity, timestampMs: Long)

Log a conversation clear event. This clears all existing entries for the conversation and adds a single clear event.

Link copied to clipboard
open suspend override fun logConversationDelete(conversationId: QualifiedIDEntity, timestampMs: Long)

Log a conversation deletion event. This clears all existing entries for the conversation and adds a single delete event.

Link copied to clipboard
open suspend override fun logMessageDelete(conversationId: QualifiedIDEntity, messageId: String, timestampMs: Long)

Log a message deletion event.

Link copied to clipboard
open suspend override fun logMessageUpsert(conversationId: QualifiedIDEntity, messageId: String, timestampMs: Long)

Log a message upsert (create or edit) event.

Link copied to clipboard
open suspend override fun logReactionsSync(conversationId: QualifiedIDEntity, messageId: String, timestampMs: Long)

Log a reactions sync event. This means "sync all reactions for this message" - when any reaction changes.

Link copied to clipboard
open suspend override fun logReadReceiptsSync(conversationId: QualifiedIDEntity, messageId: String, timestampMs: Long)

Log a read receipts sync event. This means "sync all read receipts for this message" - when any receipt changes.