Conversation Repository
Repository for managing conversations. Handles retrieval, creation, updating, and user status tracking for conversations.
Properties
Functions
Link copied to clipboard
Returns a Flow emitting the list of all conversations.
Link copied to clipboard
Retrieves a conversation by its unique ID.
Link copied to clipboard
Retrieves an existing conversation or creates a new one if it does not exist.
Link copied to clipboard
Marks a conversation as read by clearing its unread count.
Link copied to clipboard
Updates a user's online status and associated address.
Link copied to clipboard
Updates the conversation with the latest message. Increments unread count if the message is from another user.