createThreadsRepository

abstract fun createThreadsRepository(getUser: suspend (userId: String) -> User, getMessage: suspend (messageId: String) -> Message?, getChannel: suspend (cid: String) -> Channel?): ThreadsRepository

Creates ThreadsRepository.

Parameters

getUser

Function returning a User for a given ID.

getMessage

Function returning a Message for a given ID.

getChannel

Function returning a Channel for a given ID.