Conversations

interface Conversations

This module is used to manage conversations.

Functions

deleteAllMessages
Link copied to clipboard
abstract fun deleteAllMessages(conversation: IRainbowConversation?, notification: IMamNotification?)
Delete all messages from a conversation.
deleteConversation
Link copied to clipboard
abstract fun deleteConversation(conversation: IRainbowConversation?, listener: IConversationProxy.IDeleteConversationListener?)
Delete a conversation from the active list of conversations.
getConversationFromContact
Link copied to clipboard
abstract fun getConversationFromContact(contactJid: String): IRainbowConversation
Get the conversation from a contact jid.
getConversationFromId
Link copied to clipboard
abstract fun getConversationFromId(conversationId: String?): IRainbowConversation?
Get a conversation from its id.
getConversationFromJid
Link copied to clipboard
abstract fun getConversationFromJid(conversationJid: String?): IRainbowConversation?
Get a conversation from its jid.
getConversationFromRoom
Link copied to clipboard
abstract fun getConversationFromRoom(room: Room): IRainbowConversation
Get the conversation from a room.
muteOrUnmuteConversation
Link copied to clipboard
abstract fun muteOrUnmuteConversation(conversationId: String?, mustBeMuted: Boolean, listener: IConversationProxy.IUpdateConversationListener?)
Mute or Unmute notifications for a conversationThis method only works if the conversation already exists.
sendConversationByEmail
Link copied to clipboard
abstract fun sendConversationByEmail(conversation: IRainbowConversation, email: String, notification: IConversationProxy.ISendConversationByEmailListener?)
Send all messages from a conversation to the user email.
sendConversationByEmails
Link copied to clipboard
abstract fun sendConversationByEmails(conversation: IRainbowConversation, emails: List<String>, notification: IConversationProxy.ISendConversationByEmailListener?)
Send all messages from a conversation to a list of emails.

Properties

allConversations
Link copied to clipboard
abstract val allConversations: ArrayItemList<IRainbowConversation>
Get all the conversations of the user in an ArrayItemList.