abstract fun resendMessage(agent: Agent, messageId: String): Single<Pair<BasicMessageRecord, Throwable?>>
Recreates and sends a message with the given ID if we are the sender, otherwise returns an error. This function should not check if the message needs to be resent; it is the role of the controller to determine that. If sending is unsuccessful, we still signal success, but with a non-null throwable in the returned pair.
agent
- agent to resend message for
messageId
- ID of the BasicMessageRecord to recreate message from
Return
Single of BasicMessageRecord and nullable Throwable, the record representing
the message and an error if one occurred during sending.