MessageSenderImpl
internal class MessageSenderImpl(messageRepository: MessageRepository, conversationRepository: ConversationRepository, mlsConversationRepository: MLSConversationRepository, syncManager: SyncManager, messageSendFailureHandler: MessageSendFailureHandler, legalHoldHandler: LegalHoldHandler, sessionEstablisher: SessionEstablisher, messageEnvelopeCreator: MessageEnvelopeCreator, mlsMessageCreator: MLSMessageCreator, messageSendingInterceptor: MessageSendingInterceptor, userRepository: UserRepository, staleEpochVerifier: StaleEpochVerifier, enqueueSelfDeletion: (<Error class: unknown class>, <Error class: unknown class>) -> Unit, scope: <Error class: unknown class>) : MessageSender
Constructors
Link copied to clipboard
internal constructor(messageRepository: MessageRepository, conversationRepository: ConversationRepository, mlsConversationRepository: MLSConversationRepository, syncManager: SyncManager, messageSendFailureHandler: MessageSendFailureHandler, legalHoldHandler: LegalHoldHandler, sessionEstablisher: SessionEstablisher, messageEnvelopeCreator: MessageEnvelopeCreator, mlsMessageCreator: MLSMessageCreator, messageSendingInterceptor: MessageSendingInterceptor, userRepository: UserRepository, staleEpochVerifier: StaleEpochVerifier, enqueueSelfDeletion: (<Error class: unknown class>, <Error class: unknown class>) -> Unit, scope: <Error class: unknown class>)
Functions
Link copied to clipboard
open suspend override fun broadcastMessage(message: BroadcastMessage, target: BroadcastMessageTarget): Either<CoreFailure, Unit>
Attempts to send the given BroadcastMessage to suitable recipients.
Link copied to clipboard
open suspend override fun sendClientDiscoveryMessage(message: <Error class: unknown class>): Either<CoreFailure, <Error class: unknown class>>
Attempts to send the given Client Discovery Message to suitable recipients.
Link copied to clipboard
open suspend override fun sendMessage(message: <Error class: unknown class>, messageTarget: MessageTarget): Either<CoreFailure, Unit>
Attempts to send the given Message to suitable recipients.
Link copied to clipboard
open suspend override fun sendPendingMessage(conversationId: <Error class: unknown class>, messageUuid: String): Either<CoreFailure, Unit>
Given the ConversationId and UUID of a message that was previously persisted locally, attempts to send the message to suitable recipients.