MessageViewModel

class MessageViewModel(savedStateHandle: ERROR CLASS: Symbol not found for SavedStateHandle, nodeRepository: ERROR CLASS: Symbol not found for NodeRepository, radioConfigRepository: ERROR CLASS: Symbol not found for RadioConfigRepository, quickChatActionRepository: ERROR CLASS: Symbol not found for QuickChatActionRepository, serviceRepository: ERROR CLASS: Symbol not found for ServiceRepository, packetRepository: ERROR CLASS: Symbol not found for PacketRepository, uiPrefs: ERROR CLASS: Symbol not found for UiPrefs, customEmojiPrefs: ERROR CLASS: Symbol not found for CustomEmojiPrefs, homoglyphEncodingPrefs: ERROR CLASS: Symbol not found for HomoglyphPrefs, meshServiceNotifications: ERROR CLASS: Symbol not found for MeshServiceNotifications, sendMessageUseCase: ERROR CLASS: Symbol not found for SendMessageUseCase) : <ERROR CLASS> ERROR CLASS: Symbol not found for ViewModel(source)

Constructors

Link copied to clipboard
constructor(savedStateHandle: ERROR CLASS: Symbol not found for SavedStateHandle, nodeRepository: ERROR CLASS: Symbol not found for NodeRepository, radioConfigRepository: ERROR CLASS: Symbol not found for RadioConfigRepository, quickChatActionRepository: ERROR CLASS: Symbol not found for QuickChatActionRepository, serviceRepository: ERROR CLASS: Symbol not found for ServiceRepository, packetRepository: ERROR CLASS: Symbol not found for PacketRepository, uiPrefs: ERROR CLASS: Symbol not found for UiPrefs, customEmojiPrefs: ERROR CLASS: Symbol not found for CustomEmojiPrefs, homoglyphEncodingPrefs: ERROR CLASS: Symbol not found for HomoglyphPrefs, meshServiceNotifications: ERROR CLASS: Symbol not found for MeshServiceNotifications, sendMessageUseCase: ERROR CLASS: Symbol not found for SendMessageUseCase)

Properties

Link copied to clipboard
val channels: ERROR CLASS: Unresolved name: stateInWhileSubscribed
Link copied to clipboard
val connectionState: ERROR CLASS: Unresolved name: connectionState
Link copied to clipboard
val contactSettings: ERROR CLASS: Symbol not found for StateFlow<kotlin/collections/Map<kotlin/String, ERROR CLASS: Symbol not found for ContactSettings>>
Link copied to clipboard
val filteredCount: ERROR CLASS: Symbol not found for StateFlow<kotlin/Int>
Link copied to clipboard
val firstUnreadMessageUuid: ERROR CLASS: Symbol not found for StateFlow<kotlin/Long?>
Link copied to clipboard
Link copied to clipboard
val hasUnreadMessages: ERROR CLASS: Symbol not found for StateFlow<kotlin/Boolean?>
Link copied to clipboard
val homoglyphEncodingEnabled: ERROR CLASS: Unresolved name: homoglyphEncodingEnabled
Link copied to clipboard
val nodeList: ERROR CLASS: Symbol not found for StateFlow<kotlin/collections/List<ERROR CLASS: Symbol not found for Node>>
Link copied to clipboard
val ourNodeInfo: ERROR CLASS: Unresolved name: ourNodeInfo
Link copied to clipboard
val quickChatActions: ERROR CLASS: Unresolved name: stateInWhileSubscribed
Link copied to clipboard
val showFiltered: ERROR CLASS: Symbol not found for StateFlow<kotlin/Boolean>
Link copied to clipboard
val showQuickChat: ERROR CLASS: Symbol not found for StateFlow<kotlin/Boolean>
Link copied to clipboard
val title: ERROR CLASS: Symbol not found for StateFlow<kotlin/String>
Link copied to clipboard
val unreadCount: ERROR CLASS: Symbol not found for StateFlow<kotlin/Int>

Functions

Link copied to clipboard
fun clearUnreadCount(contact: String, messageUuid: Long, lastReadTimestamp: Long): ERROR CLASS: Unresolved name: launch
Link copied to clipboard
fun deleteMessages(uuidList: List<Long>): ERROR CLASS: Unresolved name: launch
Link copied to clipboard
fun getMessagesFlow(contactKey: String, limit: Int? = null): ERROR CLASS: Symbol not found for Flow<kotlin/collections/List<ERROR CLASS: Symbol not found for Message>>

Returns a non-paged reactive Flow of messages for a conversation. Used by desktop targets that don't use paging-compose.

Link copied to clipboard
fun getMessagesFromPaged(contactKey: String): ERROR CLASS: Symbol not found for Flow<ERROR CLASS: Symbol not found for PagingData<ERROR CLASS: Symbol not found for Message>>
Link copied to clipboard
fun getNode(userId: String?): ERROR CLASS: Unresolved name: getNode
Link copied to clipboard
fun getUser(userId: String?): ERROR CLASS: Unresolved name: getUser
Link copied to clipboard
fun sendMessage(str: String, contactKey: String = "0", replyId: Int? = null)

Sends a message to a contact or channel.

Link copied to clipboard
fun sendReaction(emoji: String, replyId: Int, contactKey: String): ERROR CLASS: Unresolved name: launch
Link copied to clipboard
fun setContactFilteringDisabled(contactKey: String, disabled: Boolean)
Link copied to clipboard
fun setTitle(title: String)
Link copied to clipboard
Link copied to clipboard