ConversationsHomeScreenViewModel

ViewModel for the Conversations Home Screen.

Manages the list of conversations, updates device online/offline statuses, and provides functions for refreshing and marking conversations as read.

Parameters

di

Dependency Injection container to provide required repositories and settings.

Constructors

Link copied to clipboard
constructor(di: DI)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
fun markConversationAsRead(conversationId: String)

Marks a conversation as read.

Link copied to clipboard

Refreshes the conversations list manually.