From 7776c56c6c852f8a61e64e798f9c43f2c0ffada9 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 4 Oct 2015 19:51:23 +0200 Subject: bring single message view to inbox/outbox view --- mod/mail.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/mail.php b/mod/mail.php index ef9761509..23d1f5224 100644 --- a/mod/mail.php +++ b/mod/mail.php @@ -263,7 +263,14 @@ function mail_content(&$a) { // if( local_channel() && feature_enabled(local_channel(),'richtext') ) // $plaintext = false; - $messages = private_messages_fetch_conversation(local_channel(), $mid, true); + + + if($mailbox == 'combined') { + $messages = private_messages_fetch_conversation(local_channel(), $mid, true); + } + else { + $messages = private_messages_fetch_message(local_channel(), $mid, true); + } if(! $messages) { //info( t('Message not found.') . EOL); -- cgit v1.2.3