<?php $this->render('_templates/header'); ?>

<div class="box">
    <?php $this->renderFeedbackMessages(); ?>
    
    <script>
        // Redirect to main messages page and load conversation
        window.location.href = '<?= Config::get('URL') ?>message' + '#load-conversation-<?= isset($this->other_user) ? $this->other_user->user_id : '' ?>';
    </script>
    
    <div style="text-align: center; padding: 60px;">
        <h3>Redirecting to Conversation...</h3>
        <p>If you're not redirected automatically, <a href="<?= Config::get('URL') ?>message">click here</a>.</p>
    </div>
</div>

<?php $this->render('_templates/footer'); ?>