ThreadsService

interface ThreadsService

This interface defines methods to interact with thread related features. It's the dynamic threads implementation and the homeserver must return a capability entry for threads. If the server do not support m.thread then org.matrix.android.sdk.api.session.room.threads.local.ThreadsLocalService should be used instead

Functions

Link copied to clipboard
abstract fun enhanceThreadWithEditions(threads: List<ThreadSummary>): List<ThreadSummary>

Enhance the provided ThreadSummaryList by adding the latest message edition for that thread.

Link copied to clipboard
abstract suspend fun fetchThreadList(    nextBatchId: String?,     limit: Int,     filter: ThreadFilter = ThreadFilter.ALL): FetchThreadsResult
Link copied to clipboard
abstract suspend fun fetchThreadTimeline(    rootThreadEventId: String,     from: String,     limit: Int)

Fetch all thread replies for the specified thread using the /relations api.

Link copied to clipboard
abstract suspend fun getAllThreadSummaries(): List<ThreadSummary>

Returns a list of all the ThreadSummary that exists at the room level.

Link copied to clipboard
abstract suspend fun getPagedThreadsList(userParticipating: Boolean, pagedListConfig: PagedList.Config): ThreadLivePageResult