Conversations

data class Conversations(var client: Client, ffiConversations: FfiConversations)

Constructors

Link copied to clipboard
constructor(client: Client, ffiConversations: FfiConversations)

Functions

Link copied to clipboard
suspend fun findOrCreateDm(peerAddress: String): Dm
Link copied to clipboard
suspend fun fromWelcome(envelopeBytes: ByteArray): Conversation
Link copied to clipboard
suspend fun list(after: Date? = null, before: Date? = null, limit: Int? = null, order: Conversations.ConversationOrder = ConversationOrder.CREATED_AT, consentState: ConsentState? = null): List<Conversation>
Link copied to clipboard
suspend fun listDms(after: Date? = null, before: Date? = null, limit: Int? = null, order: Conversations.ConversationOrder = ConversationOrder.CREATED_AT, consentState: ConsentState? = null): List<Dm>
Link copied to clipboard
suspend fun listGroups(after: Date? = null, before: Date? = null, limit: Int? = null, order: Conversations.ConversationOrder = ConversationOrder.CREATED_AT, consentState: ConsentState? = null): List<Group>
Link copied to clipboard
suspend fun newConversation(peerAddress: String): Conversation
Link copied to clipboard
suspend fun newGroup(accountAddresses: List<String>, permissions: GroupPermissionPreconfiguration = GroupPermissionPreconfiguration.ALL_MEMBERS, groupName: String = "", groupImageUrlSquare: String = "", groupDescription: String = "", groupPinnedFrameUrl: String = ""): Group
Link copied to clipboard
suspend fun newGroupCustomPermissions(accountAddresses: List<String>, permissionPolicySet: PermissionPolicySet, groupName: String = "", groupImageUrlSquare: String = "", groupDescription: String = "", groupPinnedFrameUrl: String = ""): Group
Link copied to clipboard
fun stream(type: Conversations.ConversationType = ConversationType.ALL): Flow<Conversation>
Link copied to clipboard
fun streamAllMessages(type: Conversations.ConversationType = ConversationType.ALL): Flow<DecodedMessage>
Link copied to clipboard
suspend fun sync()
Link copied to clipboard
suspend fun syncAllConversations(): UInt

Properties

Link copied to clipboard