resendMessage

abstract suspend fun resendMessage(uuid: Long, packetId: Int, enqueue: suspend (PersistedPacketId) -> Unit): PersistedPacketId?(source)

Requeues message uuid in place: the row keeps its uuid and timestamp and takes the fresh packetId with a QUEUED status, then enqueue hands it to the send queue. If enqueue throws, the row is restored exactly as it was and the exception propagates. Returns the row's id, or null when it no longer exists (or the active database changed meanwhile, since uuids are only unique within one database).